Read the docs
TI-2024-19996 Aliases CVE-2024-30250GHSA-c4gr-q97g-ppwc

In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists

Priority LOW 39CWE-345Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345.

Summary

Astro-Shield is an integration to enhance website security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques. Versions from 1.2.0 to 1.3.1 of Astro-Shield allow bypass to the allow-lists for cross-origin resources by introducing valid `integrity` attributes to the injected code. This implies that the injected SRI hash would be added to the generated CSP header, which would lead the browser to believe that the injected resource is legit. This vulnerability is patched in version 1.3.2.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0031 23rd percentileScored 2026-11-07
Fix Fixed astro-shield (kindspells): 1.3.2@kindspells/astro-shield (npm): 1.3.2

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-shield1.2.0 to before 1.3.21.3.2Patch availableCNA
—@kindspells/astro-shield (npm)1.2.0 to before 1.3.21.3.2Patch availableGHSA-c4gr-q97g-ppwc
  • astro-shield VendorKindSpells Affected 1.2.0 to before 1.3.2 Fixed in 1.3.2 Patch available CNA
  • @kindspells/astro-shield (npm) Vendor— Affected 1.2.0 to before 1.3.2 Fixed in 1.3.2 Patch available GHSA-c4gr-q97g-ppwc

CPE configurations NVD · 1

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

Remediation

  • Fix · CNA astro-shield (kindspells) Fixed in 1.3.2
  • Fix · GHSA-c4gr-q97g-ppwc @kindspells/astro-shield (npm) Fixed in 1.3.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-30250
  2. 2026-10-03 Alias added: GHSA-c4gr-q97g-ppwc

References

  • TI-2024-19664 Astro-Shield's Content-Security-Policy header generation in middleware could be compromised by malicious injections CVSS 3.1HIGH 7.5

Sources