NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2025-2336: AngularJS Incomplete Filtering of Special Elements vulnerability

mediumCVSS 3.1 4.8GHSA-4p4w-6hg8-63wx

Improper sanitization of the value of the 'href' and 'xlink:href' attributes in ' ' 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/ContentSpoofing and also negatively affect the application's performance and behavior by using too large or slow-to-load images.

Published Jun 4, 2025 · Updated Nov 3, 2025

Affected packages

angular-sanitize

Ecosystem
npm
Affected
>= 1.3.1, <= 1.8.3
Fixed in
No patched version yet
Check
npm ls angular-sanitize

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Improper sanitization of the value of the 'href' and 'xlink:href' attributes in '' 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 .

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology