CVE-2025-0716: Angular AngularJS Improperly Sanitizes SVG Elements Vulnerability

LOW
Advisory Identifier: GHSA-j58c-ww9w-pwp5
CVSS 4.8
CWE-791
Published
Advisory Summary

CVE-2025-0716 is a LOW (CVSS 4.8) angularjs improperly sanitizes svg elements vulnerability (CWE-791: Incomplete Filtering of Special Elements) affecting Angular libraries in the npm ecosystem. The issue involves angularjs improperly sanitizes svg elements. Remediation is available in the latest vendor maintenance releases.

CVE-2025-0716 at a Glance

CVE Identifier CVE-2025-0716
GHSA Identifier GHSA-j58c-ww9w-pwp5
Severity LOW
CVSS v3.1 Base Score 4.8
CWE Classification CWE-791: Incomplete Filtering of Special Elements
Affected Product Angular
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-0716

To remediate this vulnerability, upgrade all affected Angular dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

angular fixed: Latest secure release
npm install angular@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls angular

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-0716, inspect your project dependencies using npm:

npm ls angular

Analyze the terminal output to locate any version of Angular in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls angular command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-791: Incomplete Filtering of Special Elements, where the product receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component. In Angular, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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 .

CVE-2025-0716 Affected Angular Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
angular
npm
≤ 1.8.3

References

Frequently Asked Questions

What is CVE-2025-0716?
CVE-2025-0716 is a security vulnerability in Angular involving AngularJS improperly sanitizes SVG elements under CWE-791: Incomplete Filtering of Special Elements.
Which Angular versions are affected?
Affected versions include releases prior to current release patches across affected packages: angular.
What version fixes CVE-2025-0716?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is angular affected?
Yes, angular is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-0716?
CVE-2025-0716 has a CVSS v3.1 base score of 4.8 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2025-0716?
CVE-2025-0716 is classified under CWE-791: Incomplete Filtering of Special Elements (The product receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component.).
How can I check npm dependencies for CVE-2025-0716?
Run the dependency tree command: 'npm ls angular'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j58c-ww9w-pwp5",
  "modified" : "2025-11-03T21:33:41Z",
  "published" : "2025-04-29T18:30:59Z",
  "aliases" : [ "CVE-2025-0716" ],
  "summary" : "AngularJS improperly sanitizes SVG elements",
  "details" : "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.\n\nThis issue affects all versions of AngularJS.\n\nNote:\nThe 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 .",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "angular"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.8.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-0716"
  }, {
    "type" : "WEB",
    "url" : "https://codepen.io/herodevs/pen/qEWQmpd/a86a0d29310e12c7a3756768e6c7b915"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/angular/angular.js"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/07/msg00005.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.herodevs.com/vulnerability-directory/cve-2025-0716"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-791" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-30T14:18:11Z",
    "nvd_published_at" : "2025-04-29T17:15:39Z"
  }
}