Skip to main content
EPSS 1.9%top 22%

CVE-2024-21490: Regular Expression Denial of Service (ReDoS) in angular

0
High
VulnerabilityCVE-2024-21490cvecve-2024-21490
Published: 02/10/2024 (02/10/2024, 05:00:01 UTC)
Source: CVE Database V5
Product: 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

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

Affected software

angular
pkg:npm/angular
Affected versions
=1.3.0
angularjs
pkg:npm/angularjs
Affected versions
=1.3.0

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

AILast updated: 07/06/2026, 21:17:44 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses