{"id":"CVE-2024-30250","published":"2024-04-04T14:57:51Z","modified":"2024-08-02T01:32:05Z","title":"In Astro-Shield, setting a correct `integrity` attribute to injected code allows to bypass the allow-lists","vendor":"kindspells","product":"astro-shield","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00426,"percentile":0.28547,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/kindspells/astro-shield/security/advisories/GHSA-c4gr-q97g-ppwc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/kindspells/astro-shield/commit/1221019306f501bf5fa9bcfb5a23a2321d34ba0a","tags":["x_refsource_MISC"]},{"url":"https://github.com/kindspells/astro-shield/commit/5ae8b8ef4f681d3a81431ee7e79d5dec545c6e1f","tags":["x_refsource_MISC"]},{"url":"https://github.com/kindspells/astro-shield/releases/tag/1.3.2","tags":["x_refsource_MISC"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":5.71},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"kindspells","affectedVersions":[{"vendor":"kindspells","product":"astro-shield","versions":[">= 1.2.0, < 1.3.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-04-05T17:38:23.724265Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@kindspells/astro-shield","vulnerableRanges":[">=1.2.0, <1.3.2"],"patched":["1.3.2"],"from":["GHSA-c4gr-q97g-ppwc"],"provenance":"source"}],"summary":{"text":"In Astro-Shield (kindspells), versions 1.2.0 through 1.3.1 contain a flaw where the integration's allow-lists for cross-origin resources can be bypassed because injected code is given a valid integrity attribute, causing the resulting SRI hash to be added to the generated Content-Security-Policy header. An attacker with network access and no authentication or user interaction can exploit this to get a cross-origin resource that the browser trusts as legitimate, which can compromise the integrity of the site's content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:27Z"},"euvd":{"id":"EUVD-2024-1182","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-29896","published":"2024-03-28","fixed":"1.3.0","kev":false,"link":{"from":"CVE-2024-29896","to":"CVE-2024-30250","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@kindspells/astro-shield","fromFixed":"1.3.0","toFixed":"1.3.2","daysApart":7},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + description similarity"}]}},{"cve":"CVE-2024-30250","published":"2024-04-04","fixed":"1.3.2","kev":false}],"package":"npm:@kindspells/astro-shield"}}