CVE-2024-29896
published high CVSS 3.1 · 7.5Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| KindSpells | astro-shield | = 1.2.0 (affected) | GitHub_M · cna |
| kindspells | astro-shield | 1.2.0 to < 1.3.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
2Provider assertions
3GitHub_M · cna
Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e762bf14d045cd6228f68c43491e243ed5a8f262cb24849cf7a503c27f6c106d
- Ingested
- 23 Sep 2026, 08:21:29 UTC
- Source record
- Official CVE record