Vulnerabilities in pkg:maven/org.webjars.npm/angular

PACKAGE
Advisory Identifier: GHSA-4w4v-5hc9-xrr2
Advisory Summary

CVE-2024-21490 is a HIGH (CVSS 7.5) angular vulnerable to super-linear runtime vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Angular libraries in the npm ecosystem. The issue involves angular vulnerable to super-linear runtime due to backtracking. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.webjars.npm/angular

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.webjars.npm/angular. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4w4v-5hc9-xrr2 CVE-2024-21490 HIGH angular vulnerable to super-linear runtime due to backtracking

CVE-2024-21490 at a Glance

CVE Identifier CVE-2024-21490
GHSA Identifier GHSA-4w4v-5hc9-xrr2
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Angular
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2024-21490

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
org.webjars.npm:angular fixed: Latest secure release
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>angular</artifactId>
    <version>Latest secure release</version>
</dependency>
org.webjars.bower:angular fixed: Latest secure release
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular</artifactId>
    <version>Latest secure release</version>
</dependency>
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-2024-21490, 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-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. 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

This affects versions of the package angular from 1.3.0. A regular expression used to split the value of the ng-srcset directive is vulnerable to super-linear runtime due to backtracking. With a large carefully-crafted input, this can result in catastrophic backtracking and cause a denial of service. **Note:** This package is EOL and will not receive any updates to address this issue. Users should migrate to [@angular/core](https://www.npmjs.com/package/@angular/core).

CVE-2024-21490 Affected Angular Versions

3 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
angular
npm
≥ 1.3.0
≤ 1.8.3
org.webjars.npm:angular
Maven
≥ 1.3.0
≤ 1.8.3
org.webjars.bower:angular
Maven
≥ 1.3.0
≤ 1.8.3

References

Frequently Asked Questions

What is CVE-2024-21490?
CVE-2024-21490 is a security vulnerability in Angular involving angular vulnerable to super-linear runtime due to backtracking under CWE-1333: Inefficient Regular Expression Complexity.
Which Angular versions are affected?
Affected versions include releases prior to current release patches across affected packages: angular, org.webjars.npm:angular, org.webjars.bower:angular.
What version fixes CVE-2024-21490?
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-2024-21490?
CVE-2024-21490 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-21490?
CVE-2024-21490 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check npm dependencies for CVE-2024-21490?
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-4w4v-5hc9-xrr2",
  "modified" : "2025-11-03T22:32:26Z",
  "published" : "2024-02-10T06:30:19Z",
  "aliases" : [ "CVE-2024-21490" ],
  "summary" : "angular vulnerable to super-linear runtime due to backtracking",
  "details" : "This affects versions of the package angular from 1.3.0. A regular expression used to split the value of the ng-srcset directive is vulnerable to super-linear runtime due to backtracking. With a large carefully-crafted input, this can result in catastrophic backtracking and cause a denial of service. \n\n\n**Note:**\n\nThis package is EOL and will not receive any updates to address this issue. Users should migrate to [@angular/core](https://www.npmjs.com/package/@angular/core).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "angular"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "last_affected" : "1.8.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.npm:angular"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "last_affected" : "1.8.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.webjars.bower:angular"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "last_affected" : "1.8.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-21490"
  }, {
    "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.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-6241746"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6241747"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-ANGULAR-6091113"
  }, {
    "type" : "WEB",
    "url" : "https://stackblitz.com/edit/angularjs-vulnerability-ng-srcset-redos"
  }, {
    "type" : "WEB",
    "url" : "https://support.herodevs.com/hc/en-us/articles/25715686953485-CVE-2024-21490-AngularJS-Regular-Expression-Denial-of-Service-ReDoS"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-13T15:08:21Z",
    "nvd_published_at" : "2024-02-10T05:15:08Z"
  }
}