{"affected":[{"package":{"ecosystem":"Hex","name":"ash_admin","purl":"pkg:hex/ash_admin"},"ranges":[{"events":[{"introduced":"0.13.0"},{"fixed":"1.3.1"}],"type":"SEMVER"}],"versions":["0.13.0","0.13.1","0.13.2","0.13.3","0.13.4","0.13.5","0.13.6","0.13.7","0.13.8","0.13.9","0.13.10","0.13.11","0.13.12","0.13.13","0.13.14","0.13.15","0.13.16","0.13.17","0.13.18","0.13.19","0.13.20","0.13.21","0.13.22","0.13.23","0.13.24","0.13.25","0.13.26","0.14.0","1.0.0-rc.0","1.1.0","1.2.0","1.3.0"]},{"ranges":[{"events":[{"introduced":"eb940f4d7d857ca49368ae847f586d01c6f5ad35"},{"fixed":"07289191ccdac27dd70ab7c6413ed057bc7fdade"}],"repo":"https://github.com/ash-project/ash_admin","type":"GIT"}]}],"aliases":["GHSA-m23x-576h-73w8","CVE-2026-77850"],"credits":[{"name":"Peter Ullrich","type":"FINDER"},{"name":"Peter Ullrich","type":"REPORTER"},{"name":"Zach Daniel / Ash Project","type":"REMEDIATION_DEVELOPER"},{"name":"Jonatan Männchen / EEF","type":"COORDINATOR"}],"database_specific":{"capec_ids":["CAPEC-592"],"cpe_ids":["cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-79"]},"details":"## Summary\n\nStored 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.","id":"EEF-CVE-2026-77850","modified":"2026-09-08T03:30:04.859140Z","published":"2026-08-31T02:23:54.129Z","references":[{"type":"ADVISORY","url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-m23x-576h-73w8"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-77850.html"},{"type":"FIX","url":"https://github.com/ash-project/ash_admin/commit/07289191ccdac27dd70ab7c6413ed057bc7fdade"},{"type":"PACKAGE","url":"https://hex.pm/packages/ash_admin"}],"related":[],"schema_version":"1.7.3","severity":[{"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","type":"CVSS_V4"}],"summary":"Stored XSS in AshAdmin relationship typeahead via unescaped label_field content","upstream":[]}