CVE-2025-2336 AngularJS improper sanitization in SVG '<image>' element with 'ngSanitize'
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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 .
Upgrade path
5 packages: 5 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/angular.js(Debian 12) | < 1.8.3-1+deb12u1; = 1.8.3-1; = 1.8.3-1+deb12u1~deb11u1 | 1.8.3-1+deb12u1 | Fixed |
| debian/angular.js(Debian 13) | < 1.8.3-2 | 1.8.3-2 | Fixed |
| npm angular-sanitize(npm) | = >=1.3.1; >= 1.3.1, <= 1.8.3 | after 1.8.3 | Fixed |
| ubuntu/angular.js(Ubuntu 22.04) | < 1.8.2-2ubuntu0.1 | 1.8.2-2ubuntu0.1 | Fixed |
| ubuntu/angular.js(Ubuntu 24.04) | < 1.8.3-1ubuntu0.24.04.1 | 1.8.3-1ubuntu0.24.04.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/angular.js(Debian:12) | < 1.8.3-1+deb12u1 | 1.8.3-1+deb12u1 |
| debian/angular.js(Debian:12) | = 1.8.3-1 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-1+deb12u1~deb11u1 | No fix listed |
| debian/angular.js(Debian:13) | < 1.8.3-2 | 1.8.3-2 |
| npm angular-sanitize(npm) | >= 1.3.1, <= 1.8.3 | No fix listed |
| npm angular-sanitize(npm) | = >=1.3.1 | No fix listed |
| ubuntu/angular.js(Ubuntu:22.04) | < 1.8.2-2ubuntu0.1 | 1.8.2-2ubuntu0.1 |
| ubuntu/angular.js(Ubuntu:24.04) | < 1.8.3-1ubuntu0.24.04.1 | 1.8.3-1ubuntu0.24.04.1 |
References
- Debian Security Tracker CVE-2025-2336 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- codepen.io exploit technical-description
- www.herodevs.com third-party-advisory
- www.herodevs.com exploit
- lists.debian.org
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-7958-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- github.com product