{"id":"CVE-2026-81852","sourceIdentifier":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","published":"2026-08-31T03:16:42.500","lastModified":"2026-11-19T09:18:03.907","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"Use of Insufficiently Random Values vulnerability in ash-project ash_admin ships a hardcoded, publicly known CSP nonce, defeating nonce-based Content-Security-Policy protection.\n\nWhen mounted without :csp_nonce_assign_key, AshAdmin.Router.ash_admin/2 defaulted the img, style, and script nonces to the literal constant ash_admin-Ed55GFnX, which AshAdmin.Layouts wrote verbatim into the nonce attribute of its inline <style> and <script> tags on every response. The value is a compile-time constant published in the repository and is never rotated per request. If an application's CSP script-src allow-lists that documented default, any HTML-injection sink on an admin page can reuse the known nonce to run inline scripts the policy was meant to block. The fix generates a fresh random nonce per request.\n\nThis issue affects ash_admin: from 0.10.8 before 1.3.1."}],"affected":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","affectedData":[{"vendor":"ash-project","product":"ash_admin","defaultStatus":"unaffected","collectionURL":"https://repo.hex.pm","packageName":"ash_admin","cpes":["cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAdmin.Router'","'Elixir.AshAdmin.Layouts'"],"programFiles":["lib/ash_admin/router.ex","lib/ash_admin/components/layouts.ex"],"repo":"https://github.com/ash-project/ash_admin","packageURL":"pkg:hex/ash_admin","versions":[{"version":"0.10.8","lessThan":"1.3.1","versionType":"semver","status":"affected"}]},{"vendor":"ash-project","product":"ash_admin","defaultStatus":"unaffected","collectionURL":"https://github.com","packageName":"ash-project/ash_admin","cpes":["cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*"],"modules":["'Elixir.AshAdmin.Router'","'Elixir.AshAdmin.Layouts'"],"programFiles":["lib/ash_admin/router.ex","lib/ash_admin/components/layouts.ex"],"repo":"https://github.com/ash-project/ash_admin","packageURL":"pkg:github/ash-project/ash_admin","versions":[{"version":"99b8daed7b2f79d82fcd9e89338d41b0e1564aa7","lessThan":"bc7a1cdf873b16971a8efec35d085f8bb706314f","versionType":"git","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","cvssData":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":2.1,"baseSeverity":"LOW","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-08-31T15:59:13.805623Z","id":"CVE-2026-81852","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","description":[{"lang":"en","value":"CWE-330"}]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-81852.html","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ash-project/ash_admin/commit/99b8daed7b2f79d82fcd9e89338d41b0e1564aa7","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ash-project/ash_admin/commit/bc7a1cdf873b16971a8efec35d085f8bb706314f","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-whfj-rrrp-j597","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-81852","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-whfj-rrrp-j597","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}