Reliance on Untrusted Inputs in a Security Decision in astro-shield - CVE-2024-30250
Published: March 31, 2024 / Updated: November 9, 2026
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.