CVE-2026-77850 Stored XSS in AshAdmin relationship typeahead via unescaped label_field content
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ash-project ash admin | >= 0.13.0, < 1.3.1; >= eb940f4d7d857ca49368ae847f586d01c6f5ad35, < 07289191ccdac27dd70ab7c6413ed057bc7fdade | 1.3.1, 07289191ccdac27dd70ab7c6413ed057bc7fdade | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ash-project ash admin | >= 0.13.0, < 1.3.1 | 1.3.1 |
| ash-project ash admin | >= eb940f4d7d857ca49368ae847f586d01c6f5ad35, < 07289191ccdac27dd70ab7c6413ed057bc7fdade | 07289191ccdac27dd70ab7c6413ed057bc7fdade |
References
- github.com exploit related vendor-advisory
- EEF CNA record for CVE-2026-77850 related
- OSV record EEF-CVE-2026-77850 related
- Fix commit 0728919 in ash-project/ash_admin patch
- Introducing commit eb940f4 in ash-project/ash_admin related
- ENISA EUVD EUVD-2026-68326 third-party-advisory