CVE Catalog

CVE-2026-77850

HighCVSS 8.4
Published: Translated: NVD NIST

Summary

A Stored Cross-site Scripting vulnerability in ash_admin executes attacker-supplied record content as script in an administrator's browser. The RelationshipField and ManagedRelationshipSelectField components render labels without proper escaping.

Risk Assessment

An attacker can hijack an administrator's session and gain full privileges in the admin panel, potentially leading to data theft or system modification.

Recommendation

It is recommended to upgrade ash_admin to version 1.3.1 or later, which includes a fix that escapes labels before inserting highlight markup.

Other vulnerabilities in ash_admin

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS