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-8373

CVE-2024-8373: AngularJS srcset XSS Vulnerability

CVE-2024-8373 is an XSS vulnerability in AngularJS that exploits improper srcset sanitization, enabling content spoofing attacks. This article covers the technical details, all affected versions, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-8373 Overview

CVE-2024-8373 is a Missing Input Sanitization vulnerability affecting AngularJS, where improper sanitization of the [srcset] attribute in <source> HTML elements allows attackers to bypass common image source restrictions. This security flaw can lead to Content Spoofing attacks, potentially enabling malicious actors to inject unauthorized content into web applications built with AngularJS.

Critical Impact

This vulnerability affects all versions of AngularJS. Importantly, the AngularJS project has reached End-of-Life status and will not receive any updates to address this issue, leaving applications permanently vulnerable unless they migrate to a supported framework.

Affected Products

  • AngularJS (all versions)
  • NetApp Active IQ Unified Manager for Linux
  • NetApp Active IQ Unified Manager for vSphere
  • NetApp Active IQ Unified Manager for Windows

Discovery Timeline

  • 2024-09-09 - CVE-2024-8373 published to NVD
  • 2025-11-20 - Last updated in NVD database

Technical Details for CVE-2024-8373

Vulnerability Analysis

This vulnerability stems from insufficient sanitization of the srcset attribute within <source> HTML elements when processed by AngularJS. The srcset attribute is used in responsive web design to specify different image sources for various display conditions. AngularJS's sanitization routines fail to properly validate and sanitize values assigned to this attribute, creating an avenue for attackers to bypass the framework's built-in security controls.

The attack can be executed remotely over a network and requires user interaction to be successful. When exploited, this vulnerability compromises the integrity of the affected application by allowing unauthorized content to be displayed to users, though it does not directly impact confidentiality or availability.

Root Cause

The root cause of CVE-2024-8373 lies in AngularJS's HTML sanitization logic, which does not adequately handle the srcset attribute of <source> elements. While AngularJS implements sanitization for common attributes like src and href, the srcset attribute was not given the same level of scrutiny. This oversight allows specially crafted values to pass through sanitization checks, enabling attackers to inject arbitrary image sources or content that would otherwise be blocked by the framework's security policies.

This vulnerability is classified under CWE-791 (Incomplete Filtering of Special Elements), indicating that the sanitization routine fails to filter all potentially dangerous input patterns.

Attack Vector

The attack leverages the network-accessible nature of web applications built with AngularJS. An attacker can craft malicious input containing specially formatted srcset attribute values that bypass AngularJS's sanitization filters. When a user interacts with the application and renders content containing the malicious payload, the unauthorized content is displayed.

The attack scenario involves injecting content through user-controllable input fields that are eventually rendered in <source> elements with srcset attributes. By exploiting the sanitization bypass, attackers can point the srcset to arbitrary external resources, effectively spoofing legitimate content with attacker-controlled material.

For technical demonstration of this vulnerability, a proof-of-concept is available at the CodePen Demo Repository. Additional technical details can be found in the HeroDevs Vulnerability Directory.

Detection Methods for CVE-2024-8373

Indicators of Compromise

  • Unusual or unexpected srcset attribute values in <source> elements pointing to external or untrusted domains
  • User reports of content appearing different than expected or displaying unauthorized images
  • Web application logs showing injection attempts containing srcset attribute manipulation patterns

Detection Strategies

  • Implement Content Security Policy (CSP) headers with strict img-src directives to detect and block unauthorized image sources
  • Deploy web application firewalls (WAF) with rules to detect srcset attribute manipulation attempts
  • Conduct regular code reviews and security audits focusing on user input handling in AngularJS templates

Monitoring Recommendations

  • Monitor web server logs for requests containing unusual srcset patterns or attempts to load images from untrusted sources
  • Set up alerting for CSP violation reports that may indicate exploitation attempts
  • Track dependency usage to identify applications still running vulnerable AngularJS versions

How to Mitigate CVE-2024-8373

Immediate Actions Required

  • Inventory all applications using AngularJS and prioritize migration to Angular (2+) or other actively maintained frameworks
  • Implement Content Security Policy headers with restrictive img-src directives to limit image sources to trusted domains
  • Apply additional server-side input validation and sanitization for any user-controlled content that may be rendered in HTML
  • Review and audit all usage of <source> elements with dynamic srcset attributes in AngularJS applications

Patch Information

No official patch is available for this vulnerability. AngularJS has reached End-of-Life status and will not receive security updates. Organizations must migrate to supported frameworks such as Angular (version 2 and above) to address this vulnerability permanently.

For NetApp Active IQ Unified Manager users, refer to the NetApp Security Advisory NTAP-20241122-0003 for vendor-specific guidance. Debian users should consult the Debian LTS Announcement for distribution-specific information.

Workarounds

  • Implement strict Content Security Policy headers to restrict image sources to known trusted domains
  • Add server-side validation to reject or sanitize any user input containing srcset attribute values before rendering
  • Consider using a custom AngularJS directive that enforces additional sanitization for srcset attributes
  • Deploy a web application firewall with custom rules to filter malicious srcset payloads
bash
# Example Content Security Policy header configuration
# Add to web server configuration (Apache/Nginx)
# This restricts image sources to your domain only

# Apache (.htaccess or httpd.conf)
Header set Content-Security-Policy "img-src 'self' https://trusted-cdn.example.com;"

# Nginx (nginx.conf)
add_header Content-Security-Policy "img-src 'self' https://trusted-cdn.example.com;";

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechAngularjs

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-791

  • NVD-CWE-Other
  • Technical References
  • CodePen Demo Repository

  • HeroDevs Vulnerability CVE-2024-8373

  • Debian LTS Announcement

  • NetApp Security Advisory NTAP-20241122-0003
  • Related CVEs
  • CVE-2020-7676: AngularJS XSS Vulnerability

  • CVE-2025-2336: AngularJS ngSanitize XSS Vulnerability

  • CVE-2023-26117: AngularJS $resource Service ReDoS Vulnerability

  • CVE-2023-26116: AngularJS Regular Expression DoS 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