Vulnerability · Published Feb 10, 2024 · Assigned by snyk
CVE-2024-21490
High 7.5
In plain English
A high-severity regular-expression denial of service in angular. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
This affects versions of the package angular from 1.3.0; versions of the package angularjs 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 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | angular.js | 1.8.3-1+deb12u1 | DEBIAN-CVE-2024-21490 |
| Debian:13 | angular.js | 1.8.3-2 | DEBIAN-CVE-2024-21490 |
| Maven | org.webjars.bower:angular | no fix listed | GHSA-4w4v-5hc9-xrr2 |
| Maven | org.webjars.npm:angular | no fix listed | GHSA-4w4v-5hc9-xrr2 |
| Ubuntu:22.04:LTS | angular.js | 1.8.2-2ubuntu0.1 | UBUNTU-CVE-2024-21490 |
| Ubuntu:24.04:LTS | angular.js | 1.8.3-1ubuntu0.24.04.1 | UBUNTU-CVE-2024-21490 |
| npm | angular | no fix listed | GHSA-4w4v-5hc9-xrr2 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | angular | 1.3.0 – before * |
| n/a | org.webjars.bower:angular | 1.3.0 – before * |
| n/a | org.webjars.npm:angular | 1.3.0 – before * |
| n/a | angularjs | 1.3.0 – before * |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
References
- https://security.snyk.io/vuln/SNYK-JS-ANGULAR-6091113
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-6241746
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6241747
- https://security.snyk.io/vuln/SNYK-DOTNET-ANGULARJS-10771616
- https://stackblitz.com/edit/angularjs-vulnerability-ng-srcset-redos
- https://support.herodevs.com/hc/en-us/articles/25715686953485-CVE-2024-21490-AngularJS-Regular-Expression-Denial-of-Service-ReDoS x_transferred
- https://lists.debian.org/debian-lts-announce/2025/07/msg00005.html