Read the docs
TI-2024-19664 Aliases CVE-2024-29896GHSA-w387-5qqw-7g8m

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

Priority MEDIUM 40CWE-74Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00591 48th percentileScored 2026-11-07
Fix Fixed @kindspells/astro-shield (npm): 1.3.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
KindSpellsastro-shield= 1.2.0—No fix listedCNA
—@kindspells/astro-shield (npm)1.2.0 to before 1.3.01.3.0Patch availableGHSA-w387-5qqw-7g8m
  • astro-shield VendorKindSpells Affected = 1.2.0 Fixed in — No fix listed CNA
  • @kindspells/astro-shield (npm) Vendor— Affected 1.2.0 to before 1.3.0 Fixed in 1.3.0 Patch available GHSA-w387-5qqw-7g8m

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:kindspells:astro-shield:1.2.0:*:*:*:*:*:*:*1.2.0VulnerableKindSpells
  • cpe:2.3:a:kindspells:astro-shield:1.2.0:*:*:*:*:*:*:* Versions 1.2.0 Vulnerable ·KindSpells

Remediation

  • Fix · GHSA-w387-5qqw-7g8m @kindspells/astro-shield (npm) Fixed in 1.3.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-29896
  2. 2026-10-03 Alias added: GHSA-w387-5qqw-7g8m

References

  • TI-2024-19996 In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists CVSS 3.1HIGH 7.5

Sources