CVE-2025-2336 Details
Description
Improper sanitization of the value of the 'href' and 'xlink:href' attributes in '<image>' SVG elements in AngularJS's 'ngSanitize' module allows attackers to bypass common image source restrictions. This can lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing and also negatively affect the application's performance and behavior by using too large or slow-to-load images. This issue affects AngularJS versions greater than or equal to 1.3.1. 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 .
A vulnerability exists in the AngularJS ngSanitize module, specifically in versions 1.3.1 and later, due to improper sanitization of the href and xlink:href attributes in image elements within SVGs. This flaw allows attackers to bypass standard image source restrictions, potentially leading to content spoofing and adversely affecting the application's performance by loading excessively large or slow images. Notably, the AngularJS project is no longer maintained, and this issue will not be addressed in future updates.
Users can migrate away from AngularJS or seek support from HeroDevs, a commercial partner offering post-EOL security support for AngularJS.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 4, 2025CISA-ADP
Assessed Jun 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.herodevs.com/vulnerability-directory/cve-2025-2336?angularjs-nes | CISA-ADP | AdvisoryExploitRemedy |
| https://codepen.io/herodevs/pen/bNGYaXx/412a3a4218387479898912f60c269c6c | HeroDevs | Exploit |
| https://www.herodevs.com/vulnerability-directory/cve-2025-2336 | HeroDevs | AdvisoryExploitRemedy |
| https://lists.debian.org/debian-lts-announce/2025/07/msg00005.html | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-791 | Incomplete Filtering of Special Elements | HeroDevs |
Affected Products
| Product | Versions |
|---|---|
| AngularJS | >= 1.3.1 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | HeroDevs |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Jun 4, 2025 | CVE Modified | CISA-ADP |
| Jun 4, 2025 | New CVE Received | HeroDevs |
Volerion