CVE-2024-8372: AngularJS allows attackers to bypass common image source restrictions
Improper sanitization of the value of the [srcset] attribute in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/attacks/ContentSpoofing . This issue affects AngularJS versions 1.3.0-rc.4 and greater. Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue.
Published Sep 9, 2024 · Updated Nov 3, 2025
Affected packages
angular
- Ecosystem
- npm
- Affected
- >= 1.3.0-rc.4, <= 1.8.3
- Fixed in
- No patched version yet
- Check
npm ls angular
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Improper sanitization of the value of the [srcset] attribute in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing .
This issue affects AngularJS versions 1.3.0-rc.4 and greater.
Note: The AngularJS project is End-of-Life and will not receive any updates to address this issue. For more information see here https://docs.angularjs.org/misc/version-support-status .
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8372
- https://codepen.io/herodevs/full/xxoQRNL/0072e627abe03e9cda373bc75b4c1017
- https://www.herodevs.com/vulnerability-directory/cve-2024-8372
- https://security.netapp.com/advisory/ntap-20241122-0002
- https://lists.debian.org/debian-lts-announce/2025/07/msg00005.html
- https://github.com/advisories/GHSA-m9gf-397r-hwpg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-11998
Angular's deprecated package has a Cross-Site Scripting issue
high7.6No fixJun 24, 2026CVE-2025-0716
AngularJS improperly sanitizes SVG elements
low4.8No fixApr 29, 2025CVE-2024-8373
AngularJS allows attackers to bypass common image source restrictions
low4.8No fixSep 9, 2024CVE-2024-21490
angular vulnerable to super-linear runtime due to backtracking
high7.5No fixFeb 10, 2024
