{"id":"CVE-2024-29896","published":"2024-03-28T12:48:53Z","modified":"2024-08-02T01:17:58Z","title":"Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections","vendor":"KindSpells","product":"astro-shield","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00701,"percentile":0.48736,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/KindSpells/astro-shield/security/advisories/GHSA-w387-5qqw-7g8m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/KindSpells/astro-shield/commit/41b84576d37fa486a57005ea297658d0bc38566d","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":9.75},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"kindspells","affectedVersions":[{"vendor":"KindSpells","product":"astro-shield","versions":["= 1.2.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-06-20T15:06:11.110604Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@kindspells/astro-shield","vulnerableRanges":[">=1.2.0, <1.3.0"],"patched":["1.3.0"],"from":["GHSA-w387-5qqw-7g8m"],"provenance":"source"}],"summary":{"text":"Astro-Shield, a KindSpells library for computing subresource integrity hashes for JS and CSS, contains a flaw in its automated Content-Security-Policy header generation for server-side rendered content. An attacker can get malicious injected resources, such as inlined JavaScript or references to external scripts, allow-listed by the generated policy, which requires a network-reachable application with SSR CSP generation enabled and content that external users can partially control, with no authentication or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:03Z"},"euvd":{"id":"EUVD-2024-1019","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-29896","published":"2024-03-28","fixed":"1.3.0","kev":false},{"cve":"CVE-2024-30250","published":"2024-04-04","fixed":"1.3.2","kev":false,"link":{"from":"CVE-2024-29896","to":"CVE-2024-30250","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@kindspells/astro-shield","fromFixed":"1.3.0","toFixed":"1.3.2","daysApart":7},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + description similarity"}]}}],"package":"npm:@kindspells/astro-shield"}}