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/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 .
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | angular | >= 1.3.0-rc.4, <= 1.8.3 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8372
- https://codepen.io/herodevs/full/xxoQRNL/0072e627abe03e9cda373bc75b4c1017
- https://github.com/angular/angular.js
- https://lists.debian.org/debian-lts-announce/2025/07/msg00005.html
- https://security.netapp.com/advisory/ntap-20241122-0002
- https://www.herodevs.com/vulnerability-directory/cve-2024-8372
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L- Weakness (CWE)
CWE-1289- Platform
- npm
- Package
angular- Disclosed
- 09.09.2024
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-m9gf-397r-hwpg - CC BY 4.0
Vulnerability history: angular
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 15
- First → latest
- 06.2019 06.2026
- Without a fix
- 10
- Exploited in attacks
- 0
Severity breakdown
- High 3
- Medium 9
- Low 3
Disclosures per year
- 2019: 2
- 2020: 3
- 2021: 0
- 2022: 2
- 2023: 3
- 2024: 3
- 2025: 1
- 2026: 1
-
AngularJS allows attackers to bypass common image source restrictions this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.