Vulnerabilities in pkg:npm/angular-sanitize
PACKAGECVE-2025-2336 is a MODERATE (CVSS 4.8) angularjs incomplete filtering of special vulnerability (CWE-791: Incomplete Filtering of Special Elements) affecting Angular sanitize libraries in the npm ecosystem. The issue involves angularjs incomplete filtering of special elements vulnerability. Remediation is available in the latest vendor maintenance releases.
pkg:npm/angular-sanitize
Vulnerability advisories affecting package pkg:npm/angular-sanitize. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4p4w-6hg8-63wx | CVE-2025-2336 | MODERATE | AngularJS Incomplete Filtering of Special Elements vulnerability |
CVE-2025-2336 at a Glance
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).
How to Fix CVE-2025-2336
To remediate this vulnerability, upgrade all affected Angular sanitize dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install angular-sanitize@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls angular-sanitize
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-2336, inspect your project dependencies using npm:
npm ls angular-sanitize
Analyze the terminal output to locate any version of Angular sanitize 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-sanitize 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 sanitize, 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
CVE-2025-2336 Affected Angular sanitize Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
angular-sanitize
|
npm |
≥ 1.3.1
≤ 1.8.3
|
|
References
Frequently Asked Questions
What is CVE-2025-2336?
Which Angular sanitize versions are affected?
What version fixes CVE-2025-2336?
Is angular-sanitize affected?
What is the CVSS score of CVE-2025-2336?
What CWE is associated with CVE-2025-2336?
How can I check npm dependencies for CVE-2025-2336?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4p4w-6hg8-63wx",
"modified" : "2025-11-03T21:33:59Z",
"published" : "2025-06-04T18:30:58Z",
"aliases" : [ "CVE-2025-2336" ],
"summary" : "AngularJS Incomplete Filtering of Special Elements vulnerability",
"details" : "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.\n\nThis issue affects AngularJS versions greater than or equal to 1.3.1.\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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "angular-sanitize"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.1"
}, {
"last_affected" : "1.8.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-2336"
}, {
"type" : "WEB",
"url" : "https://codepen.io/herodevs/pen/bNGYaXx/412a3a4218387479898912f60c269c6c"
}, {
"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-2336"
}, {
"type" : "WEB",
"url" : "https://www.herodevs.com/vulnerability-directory/cve-2025-2336?angularjs-nes"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-791" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-06T23:38:46Z",
"nvd_published_at" : "2025-06-04T17:15:28Z"
}
}