Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. angular
  4. ›
  5. CVE-2024-21490

CVE-2024-21490: angular vulnerable to super-linear runtime due to backtracking

February 10, 2024 (updated November 3, 2025)

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.

References

  • github.com/advisories/GHSA-4w4v-5hc9-xrr2
  • github.com/angular/angular.js
  • lists.debian.org/debian-lts-announce/2025/07/msg00005.html
  • nvd.nist.gov/vuln/detail/CVE-2024-21490
  • security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-6241746
  • security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6241747
  • security.snyk.io/vuln/SNYK-JS-ANGULAR-6091113
  • stackblitz.com/edit/angularjs-vulnerability-ng-srcset-redos
  • support.herodevs.com/hc/en-us/articles/25715686953485-CVE-2024-21490-AngularJS-Regular-Expression-Denial-of-Service-ReDoS

Code Behaviors & Features

Detect and mitigate CVE-2024-21490 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.3.0 up to 1.8.3

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/angular/CVE-2024-21490.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:55 +0000.