The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-21490

CVE-2024-21490: Angular.js ng-srcset DoS Vulnerability

CVE-2024-21490 is a denial of service vulnerability in Angular.js caused by catastrophic backtracking in the ng-srcset directive's regex. This article covers technical details, affected versions from 1.3.0 onward, and mitigation.

Published: January 28, 2026

CVE-2024-21490 Overview

CVE-2024-21490 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting the AngularJS package from version 1.3.0 onwards. The vulnerability exists in a regular expression used to split the value of the ng-srcset directive, which is susceptible to super-linear runtime due to backtracking. When supplied with large, carefully-crafted input, this can result in catastrophic backtracking and cause a denial of service condition, rendering affected applications unresponsive.

Critical Impact

This vulnerability can lead to application unavailability through CPU exhaustion. Notably, AngularJS is end-of-life (EOL) and will not receive any patches to address this issue. Organizations must migrate to @angular/core to remediate this vulnerability.

Affected Products

  • AngularJS versions 1.3.0 and later
  • WebJars Bower package (org.webjars.bower:angular)
  • WebJars NPM package (org.webjars.npm:angular)

Discovery Timeline

  • 2024-02-10 - CVE CVE-2024-21490 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2024-21490

Vulnerability Analysis

The vulnerability resides in the ng-srcset directive implementation within AngularJS. This directive is used for responsive image handling and accepts a comma-separated list of image URLs with width descriptors. The regular expression used to parse this input contains patterns that exhibit exponential time complexity when processing malicious input strings.

ReDoS vulnerabilities occur when regular expressions can be forced into computationally expensive backtracking states. In this case, an attacker can craft input that causes the regex engine to explore an exponentially growing number of possible matches before ultimately failing, consuming significant CPU resources during processing. This is classified under CWE-1333 (Inefficient Regular Expression Complexity).

The impact is availability-focused, as successful exploitation will cause the application to become unresponsive while the regex engine processes the malicious input. This affects any AngularJS application that uses the ng-srcset directive and processes user-controllable input.

Root Cause

The root cause is an inefficient regular expression pattern in the AngularJS source code that handles parsing of the ng-srcset directive values. The regex contains nested quantifiers or overlapping alternations that create multiple paths for the regex engine to explore, leading to exponential backtracking behavior when processing strings that nearly match but ultimately fail.

This is a common pattern in ReDoS vulnerabilities where regex patterns like (a+)+ or similar constructs with nested repetition operators cause the regex engine to try exponentially many combinations before concluding that no match exists.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by providing specially crafted input to an ng-srcset directive in any of the following ways:

  • Injecting malicious values through user-controllable data that gets bound to ng-srcset
  • Manipulating URL parameters or form inputs that are rendered in templates using the directive
  • Exploiting any mechanism where external data influences the ng-srcset attribute value

The attack causes CPU exhaustion on the client-side (browser) or server-side if AngularJS is used in server-side rendering scenarios. A live demonstration of this vulnerability is available on StackBlitz for educational purposes.

Detection Methods for CVE-2024-21490

Indicators of Compromise

  • High CPU utilization in browser processes when loading specific pages
  • Application freezes or unresponsiveness during image loading operations
  • Unusual spikes in client-side JavaScript execution time
  • User complaints about browser tabs becoming unresponsive

Detection Strategies

  • Implement Software Composition Analysis (SCA) to identify AngularJS versions 1.3.0 or later in your codebase
  • Monitor JavaScript error logs for regex timeout or execution exceeded warnings
  • Use dependency scanning tools to flag EOL packages like AngularJS
  • Audit templates for ng-srcset directive usage with user-controllable input

Monitoring Recommendations

  • Deploy client-side performance monitoring to detect abnormal JavaScript execution times
  • Implement Content Security Policy (CSP) headers to limit attack surface
  • Monitor application performance metrics for sudden degradation patterns
  • Use Real User Monitoring (RUM) to identify pages experiencing performance issues

How to Mitigate CVE-2024-21490

Immediate Actions Required

  • Migrate from AngularJS to @angular/core as AngularJS is end-of-life and will not receive security patches
  • Audit all usage of the ng-srcset directive in your application templates
  • Implement input validation and sanitization for any user-controllable data bound to ng-srcset
  • Consider removing or disabling the ng-srcset directive if not essential to application functionality

Patch Information

AngularJS has reached end-of-life status and the maintainers have explicitly stated that no updates will be provided to address this vulnerability. Organizations must migrate to the modern Angular framework (@angular/core) available on npm to receive ongoing security support.

For organizations unable to immediately migrate, HeroDevs provides extended support for legacy AngularJS applications.

Workarounds

  • Implement server-side validation to reject potentially malicious ng-srcset values before they reach the client
  • Use a web application firewall (WAF) to filter requests containing suspicious patterns
  • Replace ng-srcset with custom directive implementations that use safer regex patterns
  • Limit the maximum length of input that can be processed by the ng-srcset directive
bash
# Example: Using npm to check for vulnerable AngularJS versions
npm ls angular
# Look for versions >= 1.3.0

# Example: Migrate to modern Angular
npm uninstall angular
npm install @angular/core

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechAngularjs

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1333
  • Technical References
  • Snyk Vulnerability SNYK-JAVA-ORGWEBJARSBOWER-6241746

  • Snyk Vulnerability SNYK-JAVA-ORGWEBJARSNPM-6241747

  • Snyk Vulnerability SNYK-JS-ANGULAR-6091113

  • StackBlitz AngularJS Vulnerability

  • Debian LTS Announcement July 2025

  • Hero Devs CVE-2024-21490 Analysis
  • Related CVEs
  • CVE-2023-26117: AngularJS $resource Service ReDoS Vulnerability

  • CVE-2023-26116: AngularJS Regular Expression DoS Vulnerability

  • CVE-2022-25844: AngularJS ReDoS Vulnerability

  • CVE-2024-8373: AngularJS srcset XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English