Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| KindSpells | astro-shield | = 1.2.0 | — | No fix listed | CNA |
| — | @kindspells/astro-shield (npm) | 1.2.0 to before 1.3.0 | 1.3.0 | Patch available | GHSA-w387-5qqw-7g8m |
- astro-shield VendorKindSpells Affected = 1.2.0 Fixed in — No fix listed CNA
- @kindspells/astro-shield (npm) Vendor— Affected 1.2.0 to before 1.3.0 Fixed in 1.3.0 Patch available GHSA-w387-5qqw-7g8m
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kindspells:astro-shield:1.2.0:*:*:*:*:*:*:* | 1.2.0 | Vulnerable | KindSpells |
- cpe:2.3:a:kindspells:astro-shield:1.2.0:*:*:*:*:*:*:* Versions 1.2.0 Vulnerable ·KindSpells
Remediation
- Fix · GHSA-w387-5qqw-7g8m @kindspells/astro-shield (npm) Fixed in 1.3.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-29896
- 2026-10-03 Alias added: GHSA-w387-5qqw-7g8m
References
Advisory 2
More KindSpells Astro-shield vulnerabilities
- TI-2024-19996 In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists CVSS 3.1HIGH 7.5
Sources
- CVE-2024-29896 · CVE Program
- CVE-2024-29896 · NVD
- FIRST EPSS
- GHSA-w387-5qqw-7g8m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences