CVE-2024-29896

Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections

Published Mar 28, 2024 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-1019 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.
Github GHSA Github GHSA GHSA-w387-5qqw-7g8m Content-Security-Policy header generation in middleware could be compromised by malicious injections
History
Type Values Removed Values Added
First Time appeared Kindspells
Kindspells astro-shield
CPEs cpe:2.3:a:kindspells:astro-shield:1.2.0:*:*:*:*:*:*:*
Vendors & Products Kindspells
Kindspells astro-shield
Type Values Removed Values Added
Metrics epss

{'score': 0.0012}

epss

{'score': 0.00092}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 2, 2024, 1:17 AM
Reserved
Mar 21, 2024, 3:12 PM
Status
Analyzed
Published
Mar 28, 2024, 1:15 PM
Modified
Jun 17, 2026, 7:23 AM