# CVE-2024-29896: Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-03-28T12:48:53.104Z
- Modified: 2026-09-10T03:50:10.744Z
- Also known as: GHSA-w387-5qqw-7g8m
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Astro-Shield is a library to compute the subresource integrity hashes for your JS scripts and CSS stylesheets. When automated CSP headers generation for SSR content is enabled and the web application serves content that can be partially controlled by external users, then it is possible that the CSP headers generation feature might be "allow-listing" malicious injected resources like inlined JS, or references to external malicious scripts. The fix is available in version 1.3.0.

(As written by CVE List.)

## Affected

- KindSpells astro-shield: = 1.2.0; from 1.2.0 before 1.3.0; 1.2.0
- @kindspells/astro-shield (npm): from 1.2.0 before 1.3.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/KindSpells/astro-shield/security/advisories/GHSA-w387-5qqw-7g8m> (vendor-advisory, web)
- <https://github.com/KindSpells/astro-shield/commit/41b84576d37fa486a57005ea297658d0bc38566d> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-29896> (advisory)
- <https://github.com/KindSpells/astro-shield/commit/ad3abf5577bae9be420b7ddf376337a5b8817869> (web)
- <https://github.com/KindSpells/astro-shield> (package)
- <https://github.com/KindSpells/astro-shield/compare/1.2.0...1.3.0> (web)

## Sources

- CVE List: [CVE-2024-29896](https://www.cve.org/CVERecord?id=CVE-2024-29896), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-w387-5qqw-7g8m](https://github.com/advisories/GHSA-w387-5qqw-7g8m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-29896](https://nvd.nist.gov/vuln/detail/CVE-2024-29896), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-29896 · Whole record: https://cve.day/CVE-2024-29896.json · Rebuilt by cve.day 2026-11-25T22:58:38.074Z
