# CVE-2026-81852: ash-project ash_admin hardcoded CSP nonce bypass

Source: https://junglewise.ai/threats/cve-2026-81852-ash-project-ash-admin-hardcoded-csp-nonce-bypass  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-31. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-81852 · Severity: info · Published 2026-08-31

AshAdmin, a web framework for building admin interfaces, shipped with a hardcoded, publicly known security token (nonce) used to protect against malicious script injection. This token was never changed on a per-request basis, allowing an attacker who can inject HTML on an admin page to bypass the Content Security Policy and execute arbitrary JavaScript with admin privileges.

Technologies: [Ash-Project Ash Admin](https://junglewise.ai/threats/technologies/ash-admin). Vendors: [Ash-Project](https://junglewise.ai/threats/vendors/ash-project).

## Quick answers

**Is CVE-2026-81852 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-81852 being exploited in the wild.

**How severe is CVE-2026-81852?** Informational severity, published 31 August 2026.

**Which products and versions are affected?** Ash-Project Ash Admin 0.10.8 to 1.3.0.

**Is there a fix for CVE-2026-81852?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-81852 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-81852?** Check whether you run Ash-Project Ash Admin at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

This vulnerability stems from use of insufficiently random values in Content Security Policy (CSP) nonce generation. AshAdmin.Router.ash_admin/2 defaulted the img, style, and script nonces to a compile-time constant literal value "ash_admin-Ed55GFnX" when the :csp_nonce_assign_key option was not configured. This hardcoded nonce was written verbatim into the nonce attribute of inline &lt;style&gt; and &lt;script&gt; tags on every response. The nonce value is published in the repository and never rotates per request. An attacker exploiting an HTML-injection vulnerability on an admin page could reuse the known nonce to execute inline scripts that the CSP policy was intended to block. The vulnerability affects ash_admin versions 0.10.8 through 1.3.0; version 1.3.1 and later generate fresh random nonces per request.

## Affected products

- ash-project ash_admin 0.10.8 to 1.3.0

## Timeline

- 2026-08-31: disclosed

## References

- [https://repo.hex.pm/](https://repo.hex.pm/)
- [https://github.com/](https://github.com/)

## Related threats

- [ash-project ash_admin resource exhaustion in LiveView handlers](https://junglewise.ai/threats/cve-2026-82722-ash-project-ash-admin-resource-exhaustion-in-liveview-handlers)
- [ash-project ash_admin improper output encoding in row-action links](https://junglewise.ai/threats/cve-2026-82681-ash-project-ash-admin-improper-output-encoding-in-row-action)
- [ash-project ash_admin path traversal in file upload](https://junglewise.ai/threats/cve-2026-82673-ash-project-ash-admin-path-traversal-in-file-upload)
- [ash-project ash_admin authorization bypass via user-controlled key](https://junglewise.ai/threats/cve-2026-81853-ash-project-ash-admin-authorization-bypass-via-user-controlled)
- [ash-project ash_admin stored cross-site scripting in relationship fields](https://junglewise.ai/threats/cve-2026-77850-ash-project-ash-admin-stored-cross-site-scripting-in-relationship)
