Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @kindspells/astro-shield
  4. ›
  5. CVE-2024-29896

CVE-2024-29896: Content-Security-Policy header generation in middleware could be compromised by malicious injections

March 29, 2024 (updated September 12, 2024)

When the following conditions are met:

  • Automated CSP headers generation for SSR content is enabled
  • 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.

References

  • github.com/KindSpells/astro-shield
  • github.com/KindSpells/astro-shield/commit/41b84576d37fa486a57005ea297658d0bc38566d
  • github.com/KindSpells/astro-shield/commit/ad3abf5577bae9be420b7ddf376337a5b8817869
  • github.com/KindSpells/astro-shield/compare/1.2.0...1.3.0
  • github.com/KindSpells/astro-shield/security/advisories/GHSA-w387-5qqw-7g8m
  • github.com/advisories/GHSA-w387-5qqw-7g8m
  • nvd.nist.gov/vuln/detail/CVE-2024-29896

Code Behaviors & Features

Detect and mitigate CVE-2024-29896 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.2.0 before 1.3.0, version 1.2.0

Fixed versions

  • 1.3.0

Solution

Upgrade to version 1.3.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

npm/@kindspells/astro-shield/CVE-2024-29896.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 00:14:25 +0000.