# CVE-2024-30250: In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2024-04-01T20:33:53.000Z
- Modified: 2026-09-10T03:50:11.207Z
- Also known as: GHSA-c4gr-q97g-ppwc
- Weaknesses: CWE-345
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- kindspells astro-shield: >= 1.2.0, < 1.3.2; from 1.2.0 before 1.3.2
- @kindspells/astro-shield (npm): from 1.2.0 before 1.3.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/kindspells/astro-shield/security/advisories/GHSA-c4gr-q97g-ppwc> (vendor-advisory, web)
- <https://github.com/kindspells/astro-shield/commit/1221019306f501bf5fa9bcfb5a23a2321d34ba0a> (patch, web)
- <https://github.com/kindspells/astro-shield/commit/5ae8b8ef4f681d3a81431ee7e79d5dec545c6e1f> (patch, web)
- <https://github.com/kindspells/astro-shield/releases/tag/1.3.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-30250> (advisory)
- <https://github.com/kindspells/astro-shield> (package)

## Sources

- CVE List: [CVE-2024-30250](https://www.cve.org/CVERecord?id=CVE-2024-30250), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-c4gr-q97g-ppwc](https://github.com/advisories/GHSA-c4gr-q97g-ppwc), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-30250](https://nvd.nist.gov/vuln/detail/CVE-2024-30250), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-30250 · Whole record: https://cve.day/CVE-2024-30250.json · Rebuilt by cve.day 2026-11-25T22:58:38.760Z
