CVE-2025-2336AngularJS improper sanitization in SVG '<image>' element with 'ngSanitize'
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 .
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu, npm have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | angular.js | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | angular.js | Fixed | 1.8.3-1ubuntu0.24.04.1 | UBUNTU-CVE-2025-2336 |
| Ubuntu 22.04 | angular.js | Fixed | 1.8.2-2ubuntu0.1 | UBUNTU-CVE-2025-2336 |
| Ubuntu 20.04 | angular.js | Fix pending | 1.7.9-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-2336 |
| Ubuntu 18.04 | angular.js | Fix pending | 1.5.10-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-2336 |
| Debian 13 | angular.js | Fixed | 1.8.3-2 | DEBIAN-CVE-2025-2336 |
| Debian 12 | angular.js | Fixed | 1.8.3-1+deb12u1 | DEBIAN-CVE-2025-2336 |
| npm library | angular-sanitize | Fix pending | GHSA-4p4w-6hg8-63wx |
What the vendor says
As published in the CVE record by HeroDevs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Google AngularJS: affected: >=1.3.1
References
- https://www.herodevs.com/vulnerability-directory/cve-2025-2336
- https://codepen.io/herodevs/pen/bNGYaXx/412a3a4218387479898912f60c269c6c
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.