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

Published Jun 4, 2025
·
Updated

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/ContentSpoofing  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 Software

2 affected components
angularjs AngularJS>=1.3.1
npm/angular-sanitize>=1.3.1<=1.8.3

Event History

Jun 4, 2025
CVE Published
via MITRE·04:32 PM
Data Sourced
via MITRE·04:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:30 PM
Data Sourced
via GitHub·06:30 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-2336?

The severity of CVE-2025-2336 is considered to be high due to its potential for content spoofing attacks.

2

How do I fix CVE-2025-2336?

To fix CVE-2025-2336, upgrade AngularJS to version 1.8.0 or later, as this version addresses the vulnerability.

3

What versions of AngularJS are affected by CVE-2025-2336?

CVE-2025-2336 affects AngularJS versions from 1.3.1 up to but not including 1.8.0.

4

What are the potential consequences of CVE-2025-2336?

The potential consequences of CVE-2025-2336 include malicious content spoofing, where attackers can display misleading images.

5

Is CVE-2025-2336 common among web applications using AngularJS?

Yes, CVE-2025-2336 is a common vulnerability in web applications using older versions of AngularJS that rely on the 'ngSanitize' module.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203