CVE-2024-29896CWE-74

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

High · published March 28, 2024

CVSS v3.1
7.5
EPSS
1%
Percentile
47.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00591 · 47.6th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2024-03-28T12:48Z
EPSS history
Timeline
  • 28 MAR 12:48Z
    Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections
    cvelistv5