CVE-2024-21490: Regular Expression Denial of Service (ReDoS) in angular
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).
AI Analysis
Technical Summary
CVE-2024-21490 is a ReDoS vulnerability affecting angular starting from version 1.3.0. The vulnerability is due to a regular expression used in processing the ng-srcset directive that can exhibit super-linear runtime behavior caused by backtracking. An attacker can supply large, carefully crafted input to trigger catastrophic backtracking, resulting in denial of service. The angular package is no longer maintained and will not receive a fix for this issue. Migration to the supported @angular/core package is recommended.
Potential Impact
An attacker can cause a denial of service by exploiting the vulnerable regular expression, leading to excessive CPU consumption and application unavailability. There is no impact on confidentiality or integrity. The vulnerability has a CVSS 3.1 score of 7.5 (high severity), indicating a significant availability impact without requiring privileges or user interaction.
Mitigation Recommendations
No official patch or fix is available because the angular package is end-of-life and will not receive updates. The recommended mitigation is to migrate applications from angular to the actively maintained @angular/core package. Until migration is complete, avoid processing untrusted input in the ng-srcset directive or implement input validation to limit input size and complexity.
CVE-2024-21490: Regular Expression Denial of Service (ReDoS) in angular
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).
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-21490 is a ReDoS vulnerability affecting angular starting from version 1.3.0. The vulnerability is due to a regular expression used in processing the ng-srcset directive that can exhibit super-linear runtime behavior caused by backtracking. An attacker can supply large, carefully crafted input to trigger catastrophic backtracking, resulting in denial of service. The angular package is no longer maintained and will not receive a fix for this issue. Migration to the supported @angular/core package is recommended.
Potential Impact
An attacker can cause a denial of service by exploiting the vulnerable regular expression, leading to excessive CPU consumption and application unavailability. There is no impact on confidentiality or integrity. The vulnerability has a CVSS 3.1 score of 7.5 (high severity), indicating a significant availability impact without requiring privileges or user interaction.
Mitigation Recommendations
No official patch or fix is available because the angular package is end-of-life and will not receive updates. The recommended mitigation is to migrate applications from angular to the actively maintained @angular/core package. Until migration is complete, avoid processing untrusted input in the ng-srcset directive or implement input validation to limit input size and complexity.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- snyk
- Date Reserved
- 2023-12-22T12:33:20.118Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 690904b000ff46172d4a0e24
Added to database: 11/03/2025, 19:38:24 UTC
Last enriched: 07/06/2026, 21:17:44 UTC
Last updated: 09/10/2026, 19:36:47 UTC
Views: 225
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.