{"id":"CVE-2026-77850","state":"PUBLISHED","title":"Stored XSS in AshAdmin relationship typeahead via unescaped label_field content","description":"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.","publishedAt":"2026-08-31T02:23:54.129Z","updatedAt":"2026-08-31T16:05:15.631Z","severity":{"score":8.4,"label":"High","version":"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","source":"EEF"},"assigner":"EEF","products":["ash-project ash_admin"],"affected":[{"vendor":"ash-project","product":"ash_admin","packageName":"ash_admin","packageURL":"pkg:hex/ash_admin","defaultStatus":"unaffected","versions":[{"version":"0.13.0","status":"affected","lessThan":"1.3.1","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAdmin.Components.Resource.RelationshipField'","'Elixir.AshAdmin.Components.Resource.ManagedRelationshipSelectField'"],"programFiles":["lib/ash_admin/components/resource/relationship_field.ex","lib/ash_admin/components/resource/managed_relationship_select_field.ex"],"repo":"https://github.com/ash-project/ash_admin"},{"vendor":"ash-project","product":"ash_admin","packageName":"ash-project/ash_admin","packageURL":"pkg:github/ash-project/ash_admin","defaultStatus":"unaffected","versions":[{"version":"eb940f4d7d857ca49368ae847f586d01c6f5ad35","status":"affected","lessThan":"07289191ccdac27dd70ab7c6413ed057bc7fdade","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAdmin.Components.Resource.RelationshipField'","'Elixir.AshAdmin.Components.Resource.ManagedRelationshipSelectField'"],"programFiles":["lib/ash_admin/components/resource/relationship_field.ex","lib/ash_admin/components/resource/managed_relationship_select_field.ex"],"repo":"https://github.com/ash-project/ash_admin"}],"references":["https://github.com/ash-project/ash_admin/security/advisories/GHSA-m23x-576h-73w8","https://cna.erlef.org/cves/CVE-2026-77850.html","https://osv.dev/vulnerability/EEF-CVE-2026-77850","https://github.com/ash-project/ash_admin/commit/07289191ccdac27dd70ab7c6413ed057bc7fdade"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/77xxx/CVE-2026-77850.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-77850","state":"PUBLISHED","datePublished":"2026-08-31T02:23:54.129Z","dateUpdated":"2026-08-31T16:05:15.631Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-08-31T00:45:02.443Z"},"containers":{"cna":{"title":"Stored XSS in AshAdmin relationship typeahead via unescaped label_field content","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ash-project","product":"ash_admin","packageName":"ash_admin","packageURL":"pkg:hex/ash_admin","defaultStatus":"unaffected","versions":[{"version":"0.13.0","status":"affected","lessThan":"1.3.1","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAdmin.Components.Resource.RelationshipField'","'Elixir.AshAdmin.Components.Resource.ManagedRelationshipSelectField'"],"programFiles":["lib/ash_admin/components/resource/relationship_field.ex","lib/ash_admin/components/resource/managed_relationship_select_field.ex"],"repo":"https://github.com/ash-project/ash_admin"},{"vendor":"ash-project","product":"ash_admin","packageName":"ash-project/ash_admin","packageURL":"pkg:github/ash-project/ash_admin","defaultStatus":"unaffected","versions":[{"version":"eb940f4d7d857ca49368ae847f586d01c6f5ad35","status":"affected","lessThan":"07289191ccdac27dd70ab7c6413ed057bc7fdade","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAdmin.Components.Resource.RelationshipField'","'Elixir.AshAdmin.Components.Resource.ManagedRelationshipSelectField'"],"programFiles":["lib/ash_admin/components/resource/relationship_field.ex","lib/ash_admin/components/resource/managed_relationship_select_field.ex"],"repo":"https://github.com/ash-project/ash_admin"}],"references":[{"url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-m23x-576h-73w8","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-77850.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-77850","tags":["related"]},{"url":"https://github.com/ash-project/ash_admin/commit/07289191ccdac27dd70ab7c6413ed057bc7fdade","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.4,"baseSeverity":"HIGH","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-08-31T02:23:54.129Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*","versionEndExcluding":"1.3.1","versionStartIncluding":"0.13.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Zach Daniel / Ash Project"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"}],"impacts":[{"capecId":"CAPEC-592","descriptions":[{"lang":"en","value":"CAPEC-592 Stored XSS"}]}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-m23x-576h-73w8","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-31T16:05:08.537950Z","id":"CVE-2026-77850","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-31T16:05:15.631Z"}}]}}}