{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-81852","id":"CVE-2026-81852","title":"AshAdmin ships a hardcoded CSP nonce, allowing nonce-based CSP bypass","description":"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 attribut","descriptionLong":"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.","published":"2026-08-31T02:29:14.304Z","updated":"2026-11-19T10:00:27.683403884Z","reserved":"2026-08-30T23:15:02.378Z","status":"Deferred","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":2.1,"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","rating":"low","source":"EEF"},"metrics":[{"version":"4.0","score":2.1,"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","rating":"low","source":"EEF"},{"version":"4.0","score":2.1,"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/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","rating":"low","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"low","products":["ash-project ash_admin"],"affectedProducts":[{"vendor":"ash-project","product":"ash_admin","defaultStatus":"unaffected","versions":[{"lessThan":"1.3.1","status":"affected","version":"0.10.8","versionType":"semver"}],"platforms":[]},{"vendor":"ash-project","product":"ash_admin","defaultStatus":"unaffected","versions":[{"lessThan":"bc7a1cdf873b16971a8efec35d085f8bb706314f","status":"affected","version":"99b8daed7b2f79d82fcd9e89338d41b0e1564aa7","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-330"],"aliases":["EEF-CVE-2026-81852","GHSA-whfj-rrrp-j597"],"references":[{"url":"https://github.com/ash-project/ash_admin/security/advisories/GHSA-whfj-rrrp-j597","tags":["vendor-advisory","related","exploit","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-81852.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-81852","tags":["related","web"]},{"url":"https://github.com/ash-project/ash_admin/commit/99b8daed7b2f79d82fcd9e89338d41b0e1564aa7","tags":["related","fix"]},{"url":"https://github.com/ash-project/ash_admin/commit/bc7a1cdf873b16971a8efec35d085f8bb706314f","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81852.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81852","tags":["advisory"]},{"url":"https://github.com/ash-project/ash_admin","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00528,"epssPercentile":0.45465,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-81852","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-81852","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-81852","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-81852","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}