Skip to content
Fencer Intel
medium 4.8

CVE-2025-2336 json

AngularJS improper sanitization in SVG '<image>' element with 'ngSanitize'

published last yr. modified 4mo ago also EUVD-2025-16899 , GHSA-4p4w-6hg8-63wx

cvss
4.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 24%
public exploits
0
none known

Summary

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 .

Patch / fix

  • angular.js Debian 12 1.8.3-1+deb12u1
  • angular.js Debian 13 1.8.3-2

debian advisories DEBIAN-CVE-2025-2336

  • angular.js Ubuntu 22.04 LTS 1.8.2-2ubuntu0.1
  • angular.js Ubuntu 24.04 LTS 1.8.3-1ubuntu0.24.04.1
  • angular.js Ubuntu Pro 18.04 LTS 1.5.10-1ubuntu0.1~esm1
  • angular.js Ubuntu Pro 20.04 LTS 1.7.9-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2025-2336

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2025-2336 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
last yr.

Exploit prediction

0.31% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • codepen.io https://codepen.io/herodevs/pen/bNGYaXx/412a3a4218387479898912f60c269c6c referenced PoC, tagged "exploit" by a source, unverified
  • herodevs.com https://www.herodevs.com/vulnerability-directory/cve-2025-2336?angularjs-nes referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
GitHub 3.1 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Affected packages

ecosystem package affected fixed in
npm angular-sanitize
>=1.3.1, <=1.8.3
no fix listed

Affected products

  • Google AngularJS

Classification

Weakness
  • CWE-791 Incomplete Filtering of Special Elements

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.