CVE-2024-29896 Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections
HighCVSS 7.5
EPSS 0.59%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| kindspells @kindspells/astro-shield | = 1.2.0; = = 1.2.0; >= 1.2.0, < 1.3.0 | 1.3.0 | Fixed |
| kindspells @kindspells/astro-shield(npm) | = 1.2.0; >= 1.2.0, < 1.3.0 | 1.3.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| kindspells @kindspells/astro-shield(npm) | = 1.2.0 | No fix listed |
| kindspells @kindspells/astro-shield | = = 1.2.0 | No fix listed |
| kindspells @kindspells/astro-shield | >= 1.2.0, < 1.3.0 | 1.3.0 |
| kindspells @kindspells/astro-shield | = 1.2.0 | No fix listed |
| kindspells @kindspells/astro-shield(npm) | >= 1.2.0, < 1.3.0 | 1.3.0 |
References
- https://github.com/KindSpells/astro-shield/security/advisories/GHSA-w387-5qqw-7g8m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/KindSpells/astro-shield/commit/41b84576d37fa486a57005ea297658d0bc38566d patch
- github.com patch
- github.com
- github.com
- github.com product