angular vulnerable to super-linear runtime due to backtracking
Published 10 Feb 2024 · Updated 10 Sept 2026
Affected package
- Affected
- >=1.3.0 <=1.8.3
- Fixed in
- No fix released
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.
Note:
This package is EOL and will not receive any updates to address this issue. Users should migrate to @angular/core.
Is GHSA-4w4v-5hc9-xrr2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected angular, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-21490
- Packagegithub.com/angular/angular.js
- Linklists.debian.org/debian-lts-announce/2025/07/msg00005.html
- Linksecurity.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-6241746
- Linksecurity.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6241747
- Linksecurity.snyk.io/vuln/SNYK-JS-ANGULAR-6091113
- Linkstackblitz.com/edit/angularjs-vulnerability-ng-srcset-redos
- Linksupport.herodevs.com/hc/en-us/articles/25715686953485-CVE-2024-21490-AngularJS-Regular-Expression-Denial-of-Service-ReDoS
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.