{"id":"CVE-2026-77850","aliases":["CVE-2026-77850","EEF-CVE-2026-77850","GHSA-m23x-576h-73w8"],"related":[],"kind":"vulnerability","state":"published","title":"Stored XSS in AshAdmin relationship typeahead via unescaped label_field content","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"eef"}],"published":"2026-08-31T02:23:54.129Z","modified":"2026-11-25T06:31:02.280Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":8.4,"rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.13.0","fixed":"1.3.1","status":"affected"}],"vendor":"ash-project","product":"ash_admin","package":"ash_admin","cpe":"cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_admin","source":"cvelist"},{"ranges":[{"type":"git","introduced":"eb940f4d7d857ca49368ae847f586d01c6f5ad35","fixed":"07289191ccdac27dd70ab7c6413ed057bc7fdade","status":"affected"}],"vendor":"ash-project","product":"ash_admin","package":"ash-project/ash_admin","cpe":"cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_admin","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.13.0","status":"affected","fixed":"1.3.1"}],"ecosystem":"Hex","package":"ash_admin","purl":"pkg:hex/ash_admin","source":"eef"},{"ranges":[{"type":"git","introduced":"eb940f4d7d857ca49368ae847f586d01c6f5ad35","status":"affected","fixed":"07289191ccdac27dd70ab7c6413ed057bc7fdade"}],"repo":"https://github.com/ash-project/ash_admin","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-m23x-576h-73w8","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-77850.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-77850","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_admin/commit/eb940f4d7d857ca49368ae847f586d01c6f5ad35","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_admin/commit/07289191ccdac27dd70ab7c6413ed057bc7fdade","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_admin","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-08-31T16:05:08.537Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77850","url":"https://www.cve.org/CVERecord?id=CVE-2026-77850","licence":"CVE Terms of Use","modified":"2026-11-19T08:39:06.841Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-77850","url":"https://osv.dev/vulnerability/EEF-CVE-2026-77850","licence":"CC-BY-4.0","modified":"2026-11-25T06:31:02.280Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77850","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77850","licence":"Public domain","modified":"2026-11-19T09:17:59.007Z"}],"updatedAt":"2026-11-25T22:59:35.791Z","epss":{"score":0.00365,"percentile":0.32421,"date":"2026-12-01T12:00:22.000Z"}}