Reliance on Untrusted Inputs in a Security Decision in astro-shield - CVE-2024-30250

 

Reliance on Untrusted Inputs in a Security Decision in astro-shield - CVE-2024-30250

Published: March 31, 2024 / Updated: November 9, 2026


Vulnerability identifier: #VU162735
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-30250
CWE-ID: CWE-807
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated remote attacker to bypass Astro-Shield's cross-origin resource allow-lists and have injected resources accepted by the browser.

The vulnerability exists due to Astro-Shield middleware trusting injected integrity hashes when generating Content Security Policy headers. An unauthenticated remote attacker can exploit a separate vulnerability to inject code into rendered pages processed by the middleware, then supply a valid integrity attribute to have the injected resource treated as legitimate.


Affected software

astro-shield

How to mitigate CVE-2024-30250

Install security update from vendor's website.

astro-shield - update to 1.3.2

External References

Related Security Bulletins