CVE-2025-0716 AngularJS improper sanitization in SVG '<image>' element

Medium 4.8 Published Updated

Attackers can bypass image source restrictions in AngularJS SVG elements, enabling content spoofing and potential denial of service via large images.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-0716?

CVE-2025-0716 is a medium-severity cross-site scripting vulnerability in Google AngularJS, published on 29 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Improper sanitization of the value of the 'href' and 'xlink:href' attributes in '<image>' SVG elements in AngularJS 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 all versions of AngularJS.

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 .

Weakness: CWE-791

Which versions are affected by CVE-2025-0716?

2 open source packages ship an affected version, including angular.

PackageAffectedFixed in
angular npmAll versions to 1.8.3None
angular npmAll versions to 1.8.3None

How do I fix CVE-2025-0716?

Product is end of life, replace it.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-0716 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-0716 exists.

Sources

Also known as DEBIAN-CVE-2025-0716, GHSA-j58c-ww9w-pwp5, MINI-8m45-cr8r-v3r5, MINI-wrf2-6vr4-9f42, ROOT-APP-NPM-CVE-2025-0716, UBUNTU-CVE-2025-0716.

Is CVE-2025-0716 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free