{"id":"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 \u003cb\u003e 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 \u003cimg src=x onerror=...\u003e 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.","aliases":["EEF-CVE-2026-77850","GHSA-m23x-576h-73w8"],"modified":"2026-09-03T03:30:26.191115946Z","published":"2026-08-31T02:23:54.129Z","database_specific":{"cna_assigner":"EEF","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77850.json","unresolved_ranges":[{"extracted_events":[{"introduced":"eb940f4d7d857ca49368ae847f586d01c6f5ad35"},{"fixed":"07289191ccdac27dd70ab7c6413ed057bc7fdade"}],"source":"AFFECTED_FIELD"}]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ash-project/ash_admin","events":[{"introduced":"a68a28368606b1c48c1dc79d56b5b5ed8f3c202c"},{"fixed":"91da87c1c23cd6199ba1b0a1c8849a4c605130cc"},{"fixed":"07289191ccdac27dd70ab7c6413ed057bc7fdade"}],"database_specific":{"extracted_events":[{"introduced":"0.13.0"},{"fixed":"1.3.1"}],"source":["DESCRIPTION","REFERENCES"]}}],"versions":["v1.3.0","v1.2.0","v1.1.0","v0.14.0","v0.13.26","v0.13.25","v0.13.24","v0.13.23","v0.13.22","v0.13.21","v0.13.20","v0.13.19","v0.13.18","v0.13.17","v0.13.16","v0.13.15","v0.13.14","v0.13.13","v0.13.12","v0.13.11","v0.13.10","v0.13.9","v0.13.8","v0.13.7","v0.13.6","v0.13.5","v0.13.4","v0.13.3","v0.13.2","v0.13.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-77850.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}]}