{"answers":{"affected":"2 open source packages ship an affected version, including @kindspells/astro-shield. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-29896 in the wild and no public exploit code.","fix":"Upgrade @kindspells/astro-shield to 1.3.0 or later.","what":"CVE-2024-29896 is a high-severity vulnerability in KindSpells astro-shield, published on 28 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-29896 and fix it if it is affected.\n\nWhat it is: CVE-2024-29896 is a high-severity vulnerability in KindSpells astro-shield, published on 28 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-29896 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @kindspells/astro-shield (npm): affected from 1.2.0; fixed in 1.3.0\n- @kindspells/astro-shield (npm): affected from 1.2.0; fixed in 1.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-29896/ (Markdown: https://insights.sbomify.com/CVE-2024-29896/index.md)","id":"CVE-2024-29896","markdown":"https://insights.sbomify.com/CVE-2024-29896/index.md","name":"CVE-2024-29896","record":{"aliases":["GHSA-w387-5qqw-7g8m"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Astro-Shield CSP library","requires_auth":"none","summary":"Attackers can bypass Content Security Policy protections by injecting malicious resources when automated CSP generation is enabled in Astro-Shield.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"astro-shield","vendor":"kindspells"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections","id":"CVE-2024-29896","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"CreateWiki Leak of suppressed wiki requests outside of `CreateWikiGlobalWiki`","id":"CVE-2024-29897"},"packages":[{"ecosystem":"npm","fixed":["1.3.0"],"introduced":["1.2.0"],"last_affected":[],"package":"@kindspells/astro-shield","purl":null,"source":"GHSA-w387-5qqw-7g8m"},{"ecosystem":"npm","fixed":["1.3.0"],"introduced":["1.2.0"],"last_affected":[],"package":"@kindspells/astro-shield","purl":"pkg:npm/%40kindspells/astro-shield","source":"GHSA-w387-5qqw-7g8m"}],"prev":{"headline":"Cacti command injection in cmd_realtime.php","id":"CVE-2024-29895"},"products":["astro-shield"],"published":"2024-03-28","related":[{"cvss_score":7.5,"headline":"In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists","id":"CVE-2024-30250","kev_date_added":null,"published":"2024-04-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["KindSpells"]},"summary":"Attackers can bypass Content Security Policy protections by injecting malicious resources when automated CSP generation is enabled in Astro-Shield.","url":"https://insights.sbomify.com/CVE-2024-29896/"}