{"id":"CVE-2026-81852","aliases":["CVE-2026-81852","EEF-CVE-2026-81852","GHSA-whfj-rrrp-j597"],"related":[],"kind":"vulnerability","state":"published","title":"AshAdmin ships a hardcoded CSP nonce, allowing nonce-based CSP bypass","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nUse 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.\n\n## Configurations\n\nThe application mounts AshAdmin without `:csp_nonce_assign_key` and enforces a nonce-based CSP whose `script-src` allow-lists the default `ash_admin-Ed55GFnX` value, and has a separate HTML-injection sink on an admin page.","format":"markdown","source":"eef"}],"published":"2026-08-31T02:29:14.304Z","modified":"2026-11-25T06:31:04.025Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":2.1,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-330"],"affected":[{"ranges":[{"type":"semver","introduced":"0.10.8","fixed":"1.3.1","status":"affected"}],"vendor":"ash-project","product":"ash_admin","package":"ash_admin","cpe":"cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_admin","source":"cvelist"},{"ranges":[{"type":"git","introduced":"99b8daed7b2f79d82fcd9e89338d41b0e1564aa7","fixed":"bc7a1cdf873b16971a8efec35d085f8bb706314f","status":"affected"}],"vendor":"ash-project","product":"ash_admin","package":"ash-project/ash_admin","cpe":"cpe:2.3:a:ash-project:ash_admin:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_admin","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.10.8","status":"affected","fixed":"1.3.1"}],"ecosystem":"Hex","package":"ash_admin","purl":"pkg:hex/ash_admin","source":"eef"},{"ranges":[{"type":"git","introduced":"99b8daed7b2f79d82fcd9e89338d41b0e1564aa7","status":"affected","fixed":"bc7a1cdf873b16971a8efec35d085f8bb706314f"}],"repo":"https://github.com/ash-project/ash_admin","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-whfj-rrrp-j597","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-81852.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-81852","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_admin/commit/99b8daed7b2f79d82fcd9e89338d41b0e1564aa7","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_admin/commit/bc7a1cdf873b16971a8efec35d085f8bb706314f","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_admin","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-31T15:59:13.805Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-81852","url":"https://www.cve.org/CVERecord?id=CVE-2026-81852","licence":"CVE Terms of Use","modified":"2026-11-19T08:38:54.823Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-81852","url":"https://osv.dev/vulnerability/EEF-CVE-2026-81852","licence":"CC-BY-4.0","modified":"2026-11-25T06:31:04.025Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-81852","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81852","licence":"Public domain","modified":"2026-11-19T09:18:03.907Z"}],"updatedAt":"2026-11-25T22:59:35.791Z","epss":{"score":0.00304,"percentile":0.24929,"date":"2026-12-01T12:00:22.000Z"}}