CVEfocus › CVE database › CVE-2025-2336

CVE-2025-2336AngularJS improper sanitization in SVG '<image>' element with 'ngSanitize'

CVSS 4.8 MediumEPSS 0.4% (higher than 27% of CVEs)Published 2025-06-04Updated 2025-11-03Assigner: HeroDevs

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 .

CWE-791

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

4Fixed
3Fix pending
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10angular.jsNot affected
vulnerable_code_not_present
Ubuntu 24.04angular.jsFixed1.8.3-1ubuntu0.24.04.1UBUNTU-CVE-2025-2336
Ubuntu 22.04angular.jsFixed1.8.2-2ubuntu0.1UBUNTU-CVE-2025-2336
Ubuntu 20.04angular.jsFix pending1.7.9-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-2336
Ubuntu 18.04angular.jsFix pending1.5.10-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-2336
Debian 13angular.jsFixed1.8.3-2DEBIAN-CVE-2025-2336
Debian 12angular.jsFixed1.8.3-1+deb12u1DEBIAN-CVE-2025-2336
npm libraryangular-sanitizeFix pendingGHSA-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.

References

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.