CVE-2024-8372: Angular Remote Code Execution Vulnerability
LOWCVE-2024-8372 is a LOW (CVSS 4.8) remote code execution vulnerability (CWE-1289: Improper Validation of Unsafe Equivalence in Input) affecting Angular libraries in the npm ecosystem. The issue involves angularjs allows attackers to bypass common image source restrictions. Remediation is available in the latest vendor maintenance releases.
CVE-2024-8372 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-2024-8372
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.
npm install angular@Latest secure release
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-2024-8372, 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-1289: Improper Validation of Unsafe Equivalence in Input, where the product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value. 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
CVE-2024-8372 Affected Angular Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
angular
|
npm |
≥ 1.3.0-rc.4
≤ 1.8.3
|
|
References
Frequently Asked Questions
What is CVE-2024-8372?
Which Angular versions are affected?
What version fixes CVE-2024-8372?
Is angular affected?
What is the CVSS score of CVE-2024-8372?
What CWE is associated with CVE-2024-8372?
How can I check npm dependencies for CVE-2024-8372?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m9gf-397r-hwpg",
"modified" : "2025-11-03T22:48:13Z",
"published" : "2024-09-09T15:30:41Z",
"aliases" : [ "CVE-2024-8372" ],
"summary" : "AngularJS allows attackers to bypass common image source restrictions",
"details" : "Improper sanitization of the value of the `[srcset]` attribute in AngularJS allows attackers to bypass common image source restrictions, which can also lead to a form of Content Spoofing https://owasp.org/www-community/attacks/Content_Spoofing .\n\nThis issue affects AngularJS versions 1.3.0-rc.4 and greater.\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:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "angular"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.0-rc.4"
}, {
"last_affected" : "1.8.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-8372"
}, {
"type" : "WEB",
"url" : "https://codepen.io/herodevs/full/xxoQRNL/0072e627abe03e9cda373bc75b4c1017"
}, {
"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://security.netapp.com/advisory/ntap-20241122-0002"
}, {
"type" : "WEB",
"url" : "https://www.herodevs.com/vulnerability-directory/cve-2024-8372"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1289" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-09T20:19:45Z",
"nvd_published_at" : "2024-09-09T15:15:12Z"
}
}