In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-30250
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:59 UTC · Revision 1
Source evidence
In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists
core-osv · Original sourcePublished 4 Apr 2024, 14:57 UTC
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.
osv:CVE-2024-30250
Complete source record
{
"id": "8c4d101d3db9ad387395694c393a6f2158f8e0d4cc5e63c18724ae1b27127ee3",
"url": "https://osv.dev/vulnerability/CVE-2024-30250",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists",
"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.",
"evidence": "osv:CVE-2024-30250",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-30250",
"aliases": [
"CVE-2024-30250",
"GHSA-c4gr-q97g-ppwc"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/kindspells/astro-shield",
"type": "GIT",
"events": [
{
"introduced": "4cd4de4e3284b46f135752e0a8da7212af21c80f"
},
{
"fixed": "ceaf8282284ae5f4cd114dea0d5e50685911fd0e"
},
{
"fixed": "1221019306f501bf5fa9bcfb5a23a2321d34ba0a"
},
{
"fixed": "5ae8b8ef4f681d3a81431ee7e79d5dec545c6e1f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:kindspells:astro-shield:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.2.0"
},
{
"fixed": "1.3.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1221019306f501bf5fa9bcfb5a23a2321d34ba0a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "5ae8b8ef4f681d3a81431ee7e79d5dec545c6e1f"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "ceaf8282284ae5f4cd114dea0d5e50685911fd0e"
}
],
"source": "REFERENCES_TAG",
"original_tag": "1.3.2"
}
]
}
}
],
"versions": [
"1.3.1",
"1.3.0",
"1.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-30250.json"
}
}
],
"modified": "2026-10-28T02:30:21.978223282Z",
"provider": "osv",
"references": [
"https://github.com/kindspells/astro-shield/releases/tag/1.3.2",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/30xxx/CVE-2024-30250.json",
"https://github.com/kindspells/astro-shield/security/advisories/GHSA-c4gr-q97g-ppwc",
"https://nvd.nist.gov/vuln/detail/CVE-2024-30250",
"https://github.com/kindspells/astro-shield/commit/1221019306f501bf5fa9bcfb5a23a2321d34ba0a",
"https://github.com/kindspells/astro-shield/commit/5ae8b8ef4f681d3a81431ee7e79d5dec545c6e1f"
],
"provider_metadata": {
"cwe_ids": [
"CWE-345"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/30xxx/CVE-2024-30250.json"
}
},
"related_cves": [
{
"value": "CVE-2024-30250",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488028,
"published_at": "2024-04-04T14:57:51.671+00:00"
}