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-2025-2336

CVE-2025-2336: AngularJS ngSanitize XSS Vulnerability

CVE-2025-2336 is an XSS flaw in AngularJS ngSanitize module allowing attackers to bypass image source restrictions through improper SVG sanitization. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-2336 Overview

CVE-2025-2336 is an input validation vulnerability in AngularJS's ngSanitize module that allows attackers to bypass common image source restrictions through improper sanitization of href and xlink:href attributes in <image> SVG elements. This vulnerability enables content spoofing attacks and can negatively impact application performance by allowing the injection of oversized or slow-loading images.

The AngularJS project has reached End-of-Life status and will not receive any updates to address this security issue. Organizations still using AngularJS should evaluate migration strategies or consider commercial support options for continued security updates.

Critical Impact

Attackers can bypass image source restrictions to perform content spoofing attacks and potentially cause denial of service through resource-intensive image loading in applications using AngularJS ngSanitize module.

Affected Products

  • AngularJS versions >= 1.3.1
  • Applications using the ngSanitize module for SVG content processing
  • Web applications with user-controlled SVG content rendering

Discovery Timeline

  • 2025-06-04 - CVE-2025-2336 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-2336

Vulnerability Analysis

This vulnerability stems from incomplete sanitization logic within the ngSanitize module when processing SVG <image> elements. The sanitization routines fail to properly validate and restrict the values assigned to href and xlink:href attributes, which are used to specify external image sources in SVG content.

When user-controlled SVG content is processed through ngSanitize, an attacker can craft malicious SVG payloads that include <image> elements with arbitrary URLs in these attributes. The sanitizer's allowlist-based approach does not adequately cover these specific attribute combinations within the SVG namespace.

The vulnerability is classified under CWE-791 (Incomplete Filtering of Special Elements), indicating that the sanitization logic fails to account for all potentially dangerous element and attribute combinations that could be leveraged for attack purposes.

Root Cause

The root cause lies in the incomplete implementation of SVG attribute sanitization within the ngSanitize module. While the module implements filtering for many dangerous elements and attributes, it does not properly handle the href and xlink:href attributes specifically within <image> SVG elements.

The xlink:href attribute uses XML namespacing, which may have been overlooked during the original sanitization implementation. Additionally, the dual nature of image source specification in SVG (both href and xlink:href can be used) creates multiple attack surfaces that must be defended simultaneously.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability in scenarios where:

  1. The application accepts user-supplied SVG content
  2. The content is processed through the ngSanitize module
  3. The sanitized output is rendered in the browser

By embedding malicious <image> elements with crafted href or xlink:href values, attackers can:

  • Content Spoofing: Display arbitrary external images within the trusted application context, potentially misleading users
  • Resource Exhaustion: Reference extremely large images or slow endpoints to degrade application performance
  • Information Gathering: Reference attacker-controlled URLs to track when and where the malicious content is rendered

The vulnerability mechanism involves crafting SVG content with <image> elements containing arbitrary URLs. When this content passes through ngSanitize, the malicious attributes are not properly stripped or validated. A demonstration of this behavior is available through the CodePen Demo Project provided by the security researchers.

Detection Methods for CVE-2025-2336

Indicators of Compromise

  • Presence of unexpected <image> elements within rendered SVG content
  • SVG content containing href or xlink:href attributes pointing to external domains
  • Unusual network requests to external image resources originating from SVG rendering
  • User reports of unexpected or suspicious images appearing in the application

Detection Strategies

  • Implement Content Security Policy (CSP) monitoring to detect unauthorized image sources
  • Deploy web application firewall rules to inspect incoming SVG content for suspicious <image> elements
  • Monitor application logs for rendering errors or unusual image loading patterns
  • Conduct regular code audits to identify usage of vulnerable AngularJS versions and ngSanitize module

Monitoring Recommendations

  • Enable CSP violation reporting to capture attempts to load images from unauthorized sources
  • Monitor network traffic for unexpected outbound requests during SVG content rendering
  • Implement client-side error tracking to identify performance degradation from malicious image loading
  • Track AngularJS version usage across all applications to maintain visibility of vulnerable deployments

How to Mitigate CVE-2025-2336

Immediate Actions Required

  • Inventory all applications using AngularJS ngSanitize module
  • Implement additional server-side SVG sanitization before content reaches the AngularJS layer
  • Deploy Content Security Policy headers with strict img-src directives
  • Consider migrating to a modern, actively maintained framework such as Angular (v2+)

Patch Information

AngularJS has reached End-of-Life and will not receive official patches for this vulnerability. Organizations should consider the following alternatives:

  • Migration: Transition to Angular (v2+) or another actively maintained framework
  • Commercial Support: HeroDevs offers Never-Ending Support (NES) for AngularJS, which includes security patches for EOL software
  • Defense in Depth: Implement compensating controls at other layers of the application stack

A security update is available for Debian LTS users as announced in the Debian LTS Announcement.

Workarounds

  • Implement server-side SVG sanitization using libraries that explicitly handle <image> element attributes
  • Configure Content Security Policy with restrictive img-src directives to limit allowed image sources
  • Strip or reject SVG content containing <image> elements if not required for application functionality
  • Consider disabling SVG rendering entirely for user-supplied content where feasible
bash
# Example CSP header configuration to restrict image sources
# Add to web server configuration (Apache/Nginx) or application headers

# Apache configuration
Header set Content-Security-Policy "default-src 'self'; img-src 'self' https://trusted-cdn.example.com; script-src 'self'"

# Nginx configuration
add_header Content-Security-Policy "default-src 'self'; img-src 'self' https://trusted-cdn.example.com; script-src 'self'";

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.8

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-791
  • Technical References
  • CodePen Demo Project

  • HeroDev CVE-2025-2336 Detail

  • Debian LTS Announcement

  • HeroDev CVE-2025-2336 Detail
  • Related CVEs
  • CVE-2024-8373: AngularJS srcset XSS Vulnerability

  • CVE-2020-7676: AngularJS 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