{"id":"CVE-2026-77850","aliases":["EEF-CVE-2026-77850","GHSA-m23x-576h-73w8"],"url":"https://o3.security/vulnerability/CVE-2026-77850","summary":"Stored XSS in AshAdmin relationship typeahead via unescaped label_field content","details":"Stored Cross-site Scripting vulnerability in ash-project ash_admin executes attacker-supplied record content as script in an administrator's browser.\n\nThe relationship typeahead components AshAdmin.Components.Resource.RelationshipField and AshAdmin.Components.Resource.ManagedRelationshipSelectField highlight the matched search term by wrapping it in <b> tags and rendering the whole string with Phoenix.HTML.raw/1. The highlighted value is the destination record's label_field, ordinary database content that is often written by lower-privileged users. Because raw/1 disables output escaping for the entire string, a stored label such as <img src=x onerror=...> runs as JavaScript in the admin's session as soon as a matching record appears in the dropdown, giving the attacker the admin's privileges over everything AshAdmin exposes. The fix HTML-escapes the label before inserting the highlight markup.\n\nThis issue affects ash_admin: from 0.13.0 before 1.3.1.","published":"2026-08-31T02:23:54.129Z","modified":"2026-09-01T03:46:13.661165116Z","cvss":null,"epss":{"score":0.00278,"percentile":0.19817,"asOf":"2026-08-31"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[],"fix":{"url":"https://github.com/ash-project/ash_admin/commit/07289191ccdac27dd70ab7c6413ed057bc7fdade","label":"ash-project/ash_admin@0728919"},"references":[{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-77850.html"},{"type":"WEB","url":"https://github.com"},{"type":"WEB","url":"https://osv.dev/vulnerability/EEF-CVE-2026-77850"},{"type":"WEB","url":"https://repo.hex.pm"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77850.json"},{"type":"ADVISORY","url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-m23x-576h-73w8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77850"},{"type":"FIX","url":"https://github.com/ash-project/ash_admin/commit/07289191ccdac27dd70ab7c6413ed057bc7fdade"},{"type":"PACKAGE","url":"https://github.com/ash-project/ash_admin"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-01T03:46:13.661165116Z"}}