CVE-2024-29896

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-29896
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-29896.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-29896
Aliases
Published
2024-03-28T12:48:53Z
Modified
2025-10-20T20:25:52.155507Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-74"
    ]
}
References

Affected packages

Git / github.com/kindspells/astro-shield

Affected ranges

Type
GIT
Repo
https://github.com/kindspells/astro-shield
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.7
0.2.1
0.3.0
0.4.0
0.4.1
0.4.2
0.5.0
0.5.1

1.*

1.0.0
1.0.1
1.1.0
1.2.0