In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| KindSpells | astro-shield | 1.2.0 to before 1.3.2 | 1.3.2 | Patch available | CNA |
| — | @kindspells/astro-shield (npm) | 1.2.0 to before 1.3.2 | 1.3.2 | Patch available | GHSA-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
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kindspells:astro-shield:*:*:*:*:*:*:*:* | 1.2.0 to before 1.3.2 | Vulnerable | KindSpells |
- 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
- 2026-10-02 Threatist record created from CVE-2024-30250
- 2026-10-03 Alias added: GHSA-c4gr-q97g-ppwc
References
Patch 2
Advisory 2
More KindSpells Astro-shield vulnerabilities
- 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
- CVE-2024-30250 · CVE Program
- CVE-2024-30250 · NVD
- FIRST EPSS
- GHSA-c4gr-q97g-ppwc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences