A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-66412

CVE-2025-66412: Angular Stored XSS Vulnerability

CVE-2025-66412 is a stored cross-site scripting flaw in Angular's Template Compiler that allows attackers to bypass built-in security sanitization. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2025-66412 Overview

CVE-2025-66412 is a Stored Cross-Site Scripting (XSS) vulnerability in the Angular Template Compiler. The flaw stems from an incomplete internal security schema that fails to classify certain URL-holding attributes as requiring strict URL sanitization. Attackers can bypass Angular's built-in security sanitization by injecting javascript: URLs into these unprotected attributes, leading to script execution in the victim's browser. The vulnerability affects Angular versions prior to 21.0.2, 20.3.15, and 19.2.17. Angular has released patched versions that complete the security schema and properly enforce URL sanitization on the affected attributes.

Critical Impact

Authenticated attackers can inject persistent malicious JavaScript that executes in the context of other application users, enabling session hijacking, credential theft, and unauthorized actions.

Affected Products

  • Angular versions prior to 19.2.17
  • Angular versions prior to 20.3.15
  • Angular versions prior to 21.0.2

Discovery Timeline

  • 2025-12-01 - CVE-2025-66412 published to NVD
  • 2026-02-20 - Last updated in NVD database

Technical Details for CVE-2025-66412

Vulnerability Analysis

The vulnerability resides in the Angular Template Compiler's internal security schema, which maps HTML element attributes to their required security contexts. Angular applies context-aware sanitization based on this schema, treating attributes such as href and src as URL contexts that must be screened for dangerous protocols like javascript:.

The schema is incomplete and omits certain attributes that can hold URL values. When developers bind data to these unclassified attributes, the compiler does not invoke the URL sanitizer. Attacker-controlled values containing javascript: URIs flow through templates without filtering. When a user interacts with the rendered element, the browser evaluates the injected script.

This falls under [CWE-79] Improper Neutralization of Input During Web Page Generation. Because the data is typically persisted by the application before rendering, the attack manifests as Stored XSS, affecting any user who views the malicious content.

Root Cause

The root cause is a missing entry in the compiler's security context mapping. Specific URL-holding attributes are not classified as SECURITY_SCHEMA.URL, so the runtime sanitizer is not applied during template compilation. The fix in commit 1c6b0704fb63d051fab8acff84d076abfbc4893a extends the schema to cover the omitted attributes.

Attack Vector

Exploitation requires the attacker to control data that an Angular application binds to a vulnerable attribute in a template. A typical attack chain involves submitting a javascript: URL through a form, profile field, or API input that the application later renders in a template binding. When a victim loads the page and triggers the element, the injected script executes with the privileges of the victim's session.

The vulnerability is exploitable over the network and requires user interaction with the rendered element. Successful exploitation leads to script execution in the victim's browser context.

No public proof-of-concept exploit code has been released for CVE-2025-66412. Technical details are documented in the GitHub Security Advisory GHSA-v4hv-rgfq-gp49.

Detection Methods for CVE-2025-66412

Indicators of Compromise

  • Stored user-supplied data containing javascript: URI schemes in fields rendered through Angular template bindings.
  • Unexpected outbound requests from user browsers to attacker-controlled domains following page loads of Angular applications.
  • Browser console errors or Content Security Policy violations referencing inline script execution from data-bound attributes.

Detection Strategies

  • Audit Angular application dependencies for versions older than 19.2.17, 20.3.15, or 21.0.2 using npm list @angular/compiler or Software Bill of Materials (SBOM) tooling.
  • Scan stored datastores and user-generated content for strings beginning with javascript:, data:text/html, or similarly dangerous URI schemes.
  • Review Angular templates for property bindings to URL-holding attributes that bypass explicit sanitization with DomSanitizer.bypassSecurityTrustUrl.

Monitoring Recommendations

  • Enable Content Security Policy (CSP) reporting to surface script execution from untrusted sources.
  • Log and alert on Web Application Firewall (WAF) events that match javascript: payloads in request bodies and query parameters.
  • Correlate browser session anomalies, such as unexpected token refresh or account modification events, with recently rendered user-generated content.

How to Mitigate CVE-2025-66412

Immediate Actions Required

  • Upgrade Angular to version 21.0.2, 20.3.15, or 19.2.17 depending on the major release line in use.
  • Inventory all applications using @angular/compiler and prioritize internet-facing services that render user-generated content.
  • Sanitize existing stored data to remove javascript: and other dangerous URI schemes from fields rendered in templates.

Patch Information

Angular fixed the vulnerability in versions 21.0.2, 20.3.15, and 19.2.17. The corrective change is recorded in Angular commit 1c6b0704fb63d051fab8acff84d076abfbc4893a, which extends the template compiler's security schema to classify the omitted URL-holding attributes for strict sanitization. Refer to the GitHub Security Advisory GHSA-v4hv-rgfq-gp49 for the complete advisory.

Workarounds

  • Apply server-side input validation that rejects URLs not beginning with http:, https:, or other approved schemes before persisting user content.
  • Enforce a strict Content Security Policy that disallows javascript: URLs and inline event handlers across the application.
  • Avoid using DomSanitizer.bypassSecurityTrust* methods on user-controlled data and audit existing usages for safety.
bash
# Update Angular to a patched version using npm
npm install @angular/compiler@21.0.2 @angular/core@21.0.2

# Verify the installed version
npm list @angular/compiler

# Example strict Content Security Policy header
# Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechAngular

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory GHSA-v4hv-rgfq-gp49
  • Vendor Resources
  • GitHub Commit Details
  • Related CVEs
  • CVE-2026-32635: Angular Framework XSS Vulnerability

  • CVE-2026-27970: Angular i18n Pipeline XSS Vulnerability

  • CVE-2026-22610: Angular Template Compiler XSS Vulnerability

  • CVE-2026-44437: Angular SSR Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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