PT-2024-23117 · Unknown · Astro-Shield
Castarco
·
Published
2024-03-28
·
Updated
2024-03-29
·
CVE-2024-29896
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Astro-Shield versions prior to 1.3.0
Description
Astro-Shield is a library used to compute subresource integrity hashes for JavaScript scripts and CSS stylesheets. When automated Content Security Policy (CSP) headers generation for Server-Side Rendering (SSR) content is enabled and the web application serves content that can be partially controlled by external users, there is a possibility that the CSP headers generation feature might allow malicious injected resources, such as inlined JavaScript or references to external malicious scripts.
Recommendations
For versions prior to 1.3.0, update to version 1.3.0 to resolve the issue.
As a temporary workaround, consider disabling the automated CSP headers generation feature until a patch is available.
Alternatively, use the CSP headers generation feature only for dynamically generated content that cannot be controlled by external users in any way.
Exploit
Fix
Special Elements Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astro-Shield