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

CVE-2025-66035: Angular XSRF Token Leakage Vulnerability

CVE-2025-66035 is an XSRF token leakage flaw in Angular's HttpClient affecting versions before 19.2.16, 20.3.14, and 21.0.1. Protocol-relative URLs bypass security checks, exposing tokens to attackers.

Published: March 11, 2026

CVE-2025-66035 Overview

CVE-2025-66035 is a credential leak vulnerability affecting Angular's HttpClient XSRF protection mechanism. The vulnerability allows unauthorized disclosure of Cross-Site Request Forgery (XSRF) tokens to attacker-controlled domains through improper handling of protocol-relative URLs.

Angular's HttpClient includes a built-in XSRF protection mechanism that determines whether a request is cross-origin by checking if the URL starts with a protocol (http:// or https://). However, when a URL begins with a protocol-relative format (//), the validation logic incorrectly treats it as a same-origin request. This causes the XSRF token to be automatically appended to the X-XSRF-TOKEN header and transmitted to potentially malicious external domains.

Critical Impact

Attackers can exploit this vulnerability to steal XSRF tokens from Angular applications, enabling Cross-Site Request Forgery attacks against authenticated users by intercepting sensitive security tokens intended for same-origin requests.

Affected Products

  • Angular versions prior to 19.2.16
  • Angular versions prior to 20.3.14
  • Angular versions prior to 21.0.1

Discovery Timeline

  • November 26, 2025 - CVE CVE-2025-66035 published to NVD
  • December 1, 2025 - Last updated in NVD database

Technical Details for CVE-2025-66035

Vulnerability Analysis

This vulnerability is classified as CWE-201 (Insertion of Sensitive Information Into Sent Data). The flaw exists in Angular's xsrfInterceptorFn function within the HTTP client module. The core issue stems from an incomplete URL validation check that fails to account for protocol-relative URLs—a legacy URL format that inherits the protocol scheme from the current page.

When an Angular application makes an HTTP request using HttpClient, the XSRF interceptor is supposed to prevent tokens from being sent to cross-origin destinations. The original implementation only checked for explicit http:// or https:// prefixes to identify absolute URLs. Protocol-relative URLs (beginning with //) bypass this check entirely, causing the interceptor to misidentify them as relative same-origin paths and attach the XSRF token.

An attacker who can influence the request URL—either through user input, open redirects, or other injection vectors—can craft a protocol-relative URL pointing to their controlled server. When the Angular application processes this URL, it will inadvertently transmit the XSRF token to the attacker's domain.

Root Cause

The root cause is insufficient URL validation in the xsrfInterceptorFn function located in packages/common/http/src/xsrf.ts. The original implementation used a simple string comparison to detect absolute URLs by checking for http:// or https:// prefixes. This approach failed to recognize that protocol-relative URLs (//example.com) also represent absolute cross-origin destinations, as browsers resolve them using the current page's protocol scheme.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker must identify an Angular application that:

  1. Uses HttpClient with default XSRF protection enabled
  2. Allows user-controlled or externally-influenced URL parameters in HTTP requests

Once these conditions are met, the attacker can supply a protocol-relative URL (e.g., //attacker.com/endpoint) that the application will treat as same-origin, resulting in the XSRF token being transmitted to the attacker's server in the X-XSRF-TOKEN header.

typescript
// Security patch introducing ABSOLUTE_URL_REGEX
// Source: https://github.com/angular/angular/commit/0276479e7d0e280e0f8d26fa567d3b7aa97a516f

   }
 }
 
+/**
+ * Regex to match absolute URLs, including protocol-relative URLs.
+ */
+const ABSOLUTE_URL_REGEX = /^(?:https?:)?\/\//i;

export function xsrfInterceptorFn(
   req: HttpRequest<unknown>,
   next: HttpHandlerFn,
 ): Observable<HttpEvent<unknown>> {
-  const lcUrl = req.url.toLowerCase();
   // Skip both non-mutating requests and absolute URLs.
   // Non-mutating requests don't require a token, and absolute URLs require special handling
   // anyway as the cookie set

The patch introduces a new regex pattern ABSOLUTE_URL_REGEX that correctly identifies both explicit protocol URLs (https:// or http://) and protocol-relative URLs (//) as absolute URLs, preventing token attachment for cross-origin requests.

Detection Methods for CVE-2025-66035

Indicators of Compromise

  • Outbound HTTP requests containing X-XSRF-TOKEN headers directed to external or unexpected domains
  • Network traffic showing XSRF tokens being transmitted to third-party endpoints
  • Application logs indicating HttpClient requests with protocol-relative URLs (//) in the request path
  • Unusual authentication failures or session anomalies following XSRF token compromise

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block outbound requests containing XSRF tokens to non-whitelisted domains
  • Deploy network monitoring to identify HTTP requests with X-XSRF-TOKEN headers being sent to external IP addresses or domains
  • Audit Angular application source code for usage of protocol-relative URLs in HttpClient requests
  • Review browser developer tools network tabs during application testing to verify XSRF tokens are not leaked

Monitoring Recommendations

  • Configure SIEM alerting for anomalous patterns of X-XSRF-TOKEN header transmission to external destinations
  • Implement Content Security Policy (CSP) headers to restrict request destinations and report violations
  • Monitor application dependency versions to ensure Angular is updated to patched releases
  • Enable verbose logging for HttpClient requests to capture URL patterns and token attachment behavior

How to Mitigate CVE-2025-66035

Immediate Actions Required

  • Upgrade Angular to version 19.2.16, 20.3.14, or 21.0.1 or later immediately
  • Audit all HttpClient request URLs in your application codebase for protocol-relative URL patterns
  • Review and sanitize any user-controlled input that influences HTTP request URLs
  • Implement input validation to reject or transform protocol-relative URLs before passing them to HttpClient

Patch Information

Angular has released security patches across three version branches to address this vulnerability. The fix introduces a new regex pattern (ABSOLUTE_URL_REGEX) that correctly identifies protocol-relative URLs as absolute cross-origin URLs, preventing XSRF token attachment.

Patched versions are available:

  • Angular 19.2.16
  • Angular 20.3.14
  • Angular 21.0.1

For complete technical details, refer to GitHub Security Advisory GHSA-58c5-g7wp-6w37.

Workarounds

  • Avoid using protocol-relative URLs (URLs starting with //) in all HttpClient requests
  • Use only relative paths (starting with a single /) for same-origin API calls
  • Use fully qualified absolute URLs with explicit protocols (https://) for trusted cross-origin requests
  • Implement URL validation middleware to detect and reject protocol-relative URL patterns before they reach HttpClient
bash
# Configuration example
# Search for protocol-relative URLs in your Angular codebase
grep -rn "http\." --include="*.ts" | grep "\/\/" | grep -v "http://" | grep -v "https://"

# Example of safe URL patterns in TypeScript
# UNSAFE: const url = "//api.example.com/data"
# SAFE: const url = "/api/data"
# SAFE: const url = "https://api.example.com/data"

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

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechAngular

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/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
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-201
  • Technical References
  • GitHub Angular Commit Update

  • GitHub Angular Commit Update

  • GitHub Angular Commit Update

  • GitHub Angular Release 19.2.16

  • GitHub Angular Release 20.3.14

  • GitHub Angular Release 21.0.1

  • GitHub Security Advisory GHSA-58c5-g7wp-6w37
  • Related CVEs
  • CVE-2026-33397: Angular SSR Open Redirect Vulnerability

  • CVE-2026-32635: Angular Framework XSS Vulnerability

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

  • CVE-2026-27739: Angular SSR SSRF Vulnerability
Default Legacy - Prefooter | 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