CVE-2024-29896
HIGH 7.5CVSS 3.1Content-Security-Policy header generation in middleware could be compromised by malicious injections
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.
- Published
- 28 Mar 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-74
- Also known as
- GHSA-w387-5qqw-7g8m
- Sources
- NVDJSONOSV GHSA-w387-5qqw-7g8mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kindspells | astro-shieldcpe:2.3:a:kindspells:astro-shield:1.2.0:*:*:*:*:*:*:* |
= 1.2.0 | |
| OSV | npm | @kindspells/astro-shield | >= 1.2.0, < 1.3.0 | 1.3.0 |
References
- https://github.com/KindSpells/astro-shield/commit/41b84576d37fa486a57005ea297658d0bc38566d · Patch, WEB
- https://github.com/KindSpells/astro-shield/security/advisories/GHSA-w387-5qqw-7g8m · Vendor Advisory, 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
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 28 Mar 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Mar 2024)