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-2026-33397

CVE-2026-33397: Angular SSR Open Redirect Vulnerability

CVE-2026-33397 is an open redirect flaw in Angular SSR that allows attackers to redirect users via X-Forwarded-Prefix header manipulation. This article covers technical details, affected versions, impact, and mitigation.

Published: March 27, 2026

CVE-2026-33397 Overview

CVE-2026-33397 is an Open Redirect vulnerability in @angular/ssr, the server-side rendering tool for Angular applications. This vulnerability represents an incomplete fix for the previously disclosed CVE-2026-27738. While the original patch successfully blocked multiple leading slashes (e.g., ///), the validation logic fails to account for a single backslash (\) bypass, allowing attackers to redirect users to malicious domains and potentially poison web caches.

Critical Impact

Attackers can exploit this vulnerability to redirect users to attacker-controlled domains and poison intermediate web caches, potentially affecting all users accessing cached responses through the compromised proxy.

Affected Products

  • Angular SSR 22.x branch versions prior to 22.0.0-next.2
  • Angular SSR 21.x branch versions prior to 21.2.3
  • Angular SSR 20.x branch versions prior to 20.3.21

Discovery Timeline

  • 2026-03-26 - CVE CVE-2026-33397 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-33397

Vulnerability Analysis

This Open Redirect vulnerability occurs due to insufficient input validation in the @angular/ssr package when processing the X-Forwarded-Prefix header. The vulnerability is classified under CWE-601 (URL Redirection to Untrusted Site), which describes scenarios where web applications redirect users to external sites without proper validation of the destination URL.

The core issue stems from an incomplete security fix for the earlier CVE-2026-27738. The original mitigation correctly blocked redirect attempts using multiple consecutive forward slashes (e.g., ///example.com), but the validation logic overlooked a critical edge case involving a single backslash character.

Root Cause

The root cause lies in the internal validation logic within @angular/ssr that processes the X-Forwarded-Prefix header. The validation function was designed to detect and block protocol-relative URLs by checking for multiple leading slashes. However, it fails to recognize that a single backslash (\) can also be leveraged to construct a protocol-relative URL when combined with the application's automatic prefix handling.

When the application processes a malicious X-Forwarded-Prefix value starting with a single backslash, it prepends a leading forward slash, resulting in a /\ sequence in the Location header. Modern browsers interpret this /\ pattern as equivalent to //, treating the subsequent path as a protocol-relative URL pointing to an external domain.

Attack Vector

The attack exploits Angular SSR applications deployed behind reverse proxies that pass the X-Forwarded-Prefix header. An attacker can craft a malicious request containing a single backslash followed by their controlled domain in the X-Forwarded-Prefix header.

The exploitation flow proceeds as follows: The attacker sends a request with a header value like X-Forwarded-Prefix: \attacker.com. The internal validation fails to flag the single backslash as invalid. The application prepends a leading forward slash, generating a Location header containing /\attacker.com. The browser interprets /\ as //, treating it as a protocol-relative URL and redirecting the user to //attacker.com.

Furthermore, because the response lacks the Vary: X-Forwarded-Prefix header, intermediate caching proxies may store the malicious redirect response. This enables Web Cache Poisoning, where subsequent legitimate users receive the cached malicious redirect without any direct interaction with the attacker.

For detailed technical implementation, refer to the GitHub Security Advisory and the associated pull request.

Detection Methods for CVE-2026-33397

Indicators of Compromise

  • Unusual Location header values containing /\ sequences followed by external domains
  • HTTP responses with Location headers pointing to unexpected external URLs
  • Log entries showing X-Forwarded-Prefix header values containing backslash characters
  • Cache entries containing redirect responses to external domains

Detection Strategies

  • Monitor web server and proxy access logs for requests containing backslash characters in the X-Forwarded-Prefix header
  • Implement Web Application Firewall (WAF) rules to detect and block X-Forwarded-Prefix values containing backslash characters
  • Review cached responses in intermediate proxies for unexpected redirect destinations
  • Audit application dependencies to identify vulnerable versions of @angular/ssr

Monitoring Recommendations

  • Configure alerting on HTTP responses with Location headers containing the /\ character sequence
  • Monitor for user reports of unexpected redirects to external domains
  • Implement cache inspection routines to detect poisoned cache entries
  • Track outbound redirect destinations and alert on new or suspicious external domains

How to Mitigate CVE-2026-33397

Immediate Actions Required

  • Update @angular/ssr to patched versions: 22.0.0-next.2, 21.2.3, or 20.3.21 depending on your branch
  • Sanitize the X-Forwarded-Prefix header in your server.ts before the Angular engine processes the request
  • Configure reverse proxies to strip or validate X-Forwarded-Prefix headers containing backslash characters
  • Purge intermediate caches to remove any potentially poisoned redirect responses

Patch Information

The Angular team has released security patches addressing this vulnerability. Affected applications should upgrade to the following versions:

  • For 22.x branch: Upgrade to 22.0.0-next.2 or later
  • For 21.x branch: Upgrade to 21.2.3 or later
  • For 20.x branch: Upgrade to 20.3.21 or later

The fix addresses the validation bypass by properly detecting and blocking single backslash characters in the X-Forwarded-Prefix header value. Additional details are available in the GitHub Pull Request #32771.

Workarounds

  • Implement input sanitization in your server.ts to reject or sanitize X-Forwarded-Prefix values containing backslash characters before Angular SSR processes the request
  • Configure your reverse proxy or load balancer to strip the X-Forwarded-Prefix header if not required by your application
  • Add WAF rules to block requests with suspicious X-Forwarded-Prefix header values
  • Add the Vary: X-Forwarded-Prefix header manually to prevent cache poisoning until the patch is applied
typescript
// Workaround: Sanitize X-Forwarded-Prefix in server.ts
// Add this middleware before Angular SSR engine initialization

app.use((req, res, next) => {
  const forwardedPrefix = req.headers['x-forwarded-prefix'];
  if (forwardedPrefix && typeof forwardedPrefix === 'string') {
    // Block requests containing backslash in X-Forwarded-Prefix
    if (forwardedPrefix.includes('\\')) {
      req.headers['x-forwarded-prefix'] = '';
    }
  }
  // Ensure proper Vary header to prevent cache poisoning
  res.vary('X-Forwarded-Prefix');
  next();
});

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechAngular

  • SeverityMEDIUM

  • CVSS Score6.9

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/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-601
  • Technical References
  • GitHub Security Advisory

  • GitHub Pull Request

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27738: 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
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