Vulnerability · Published Jun 4, 2025 · Assigned by HeroDevs

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

Medium 4.8

In plain English

A medium-severity security flaw in AngularJS from Google. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.3%top 75.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 .

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12angular.js1.8.3-1+deb12u1DEBIAN-CVE-2025-2336
Debian:13angular.js1.8.3-2DEBIAN-CVE-2025-2336
Ubuntu:22.04:LTSangular.js1.8.2-2ubuntu0.1UBUNTU-CVE-2025-2336
Ubuntu:24.04:LTSangular.js1.8.3-1ubuntu0.24.04.1UBUNTU-CVE-2025-2336
npmangular-sanitizeno fix listedGHSA-4p4w-6hg8-63wx

Affected products (as reported)

VendorProductVersions
Google AngularJS >=1.3.1

Weakness: CWE-791 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

References