CVE-2026-77850 Stored XSS in AshAdmin relationship typeahead via unescaped label_field content
Stored XSS in AshAdmin allows attackers to execute scripts in admin browsers via unescaped label fields, leading to privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-77850?
CVE-2026-77850 is a high-severity cross-site scripting vulnerability in ash-project ash_admin, published on 31 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Stored Cross-site Scripting vulnerability in ash-project ash_admin executes attacker-supplied record content as script in an administrator's browser.
The 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.
This issue affects ash_admin: from 0.13.0 before 1.3.1.
Weakness: CWE-79
Which versions are affected by CVE-2026-77850?
1 open source package ship an affected version, including ash_admin.
| Package | Affected | Fixed in |
|---|---|---|
ash_admin Hex | From 0.13.0 | 1.3.1 |
How do I fix CVE-2026-77850?
Upgrade ash_admin to 1.3.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-77850 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-77850 exists.
Sources
Also known as EEF-CVE-2026-77850, GHSA-m23x-576h-73w8.