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

CVE-2026-27738: Angular SSR Open Redirect Vulnerability

CVE-2026-27738 is an open redirect vulnerability in Angular SSR that exploits URL normalization logic via X-Forwarded-Prefix headers, enabling phishing and SEO hijacking attacks. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 27, 2026

CVE-2026-27738 Overview

An Open Redirect vulnerability has been identified in Angular SSR (Server-Side Rendering), a server-side rendering tool for Angular applications. The vulnerability exists in the internal URL processing logic that normalizes URL segments by stripping leading slashes. However, the implementation only removes a single leading slash, creating an exploitable condition when Angular SSR applications are deployed behind a proxy that passes the X-Forwarded-Prefix header.

When an attacker provides a value starting with three slashes in the X-Forwarded-Prefix header, the insufficient sanitization allows the redirect to be manipulated. This vulnerability can be leveraged for large-scale phishing campaigns and SEO hijacking attacks.

Critical Impact

Attackers can exploit this vulnerability to redirect users to malicious external domains, enabling phishing attacks and SEO poisoning when Angular SSR applications are deployed behind reverse proxies or CDNs that pass the X-Forwarded-Prefix header without proper sanitization.

Affected Products

  • Angular SSR 19.x branch prior to version 19.2.21
  • Angular SSR 20.x branch prior to version 20.3.17
  • Angular SSR 21.x branch prior to versions 21.1.5 and 21.2.0-rc.1

Discovery Timeline

  • 2026-02-25 - CVE CVE-2026-27738 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-27738

Vulnerability Analysis

This Open Redirect vulnerability (CWE-601) stems from improper URL validation in Angular SSR's internal URL processing logic. The vulnerability specifically affects the joinUrlParts() function in packages/angular/ssr/src/utils/url.ts, which is responsible for normalizing and joining URL path segments.

The original implementation only stripped a single leading slash from URL parts, meaning that an input like ///evil.com would only become //evil.com after normalization. In HTTP/URL semantics, a path starting with // is interpreted as a protocol-relative URL, effectively redirecting users to an external domain.

For the vulnerability to be exploitable, the following conditions must be met:

  • The application must use Angular SSR
  • The application must have routes that perform internal redirects
  • The infrastructure (Reverse Proxy/CDN) must pass the X-Forwarded-Prefix header to the SSR process without sanitization
  • The cache must not vary on the X-Forwarded-Prefix header

Root Cause

The root cause lies in the insufficient input sanitization within the joinUrlParts() function. The original code used a simple conditional check if (part[0] === '/') followed by a single slice(1) operation to remove leading slashes. This approach fails to handle cases where multiple consecutive slashes are present at the beginning of the URL part.

The vulnerability is further compounded by the lack of validation in the X-Forwarded-Prefix header processing, which should reject prefix values that could result in protocol-relative URLs or path traversal sequences.

Attack Vector

The attack is network-based and requires no authentication or user interaction beyond visiting a crafted URL. An attacker can manipulate the X-Forwarded-Prefix header with a value containing triple slashes (e.g., ///attacker.com). When Angular SSR processes a redirect, the insufficient normalization results in a URL like //attacker.com/path, which browsers interpret as a protocol-relative URL pointing to the attacker's domain.

This enables:

  • Phishing attacks: Users can be redirected to malicious sites that mimic legitimate login pages
  • SEO hijacking: Search engines may index malicious redirects, damaging the application's search ranking
  • Cache poisoning: If responses are cached, all users accessing the cached resource may be redirected

The following patch demonstrates how the Angular team fixed the vulnerability by implementing proper multi-slash stripping:

typescript
  * ```
  */
 export function joinUrlParts(...parts: string[]): string {
-  const normalizeParts: string[] = [];
+  const normalizedParts: string[] = [];
+
   for (const part of parts) {
     if (part === '') {
       // Skip any empty parts
       continue;
     }
 
-    let normalizedPart = part;
-    if (part[0] === '/') {
-      normalizedPart = normalizedPart.slice(1);
+    let start = 0;
+    let end = part.length;
+
+    // Use "Pointers" to avoid intermediate slices
+    while (start < end && part[start] === '/') {
+      start++;
     }
-    if (part.at(-1) === '/') {
-      normalizedPart = normalizedPart.slice(0, -1);
+
+    while (end > start && part[end - 1] === '/') {
+      end--;
     }
-    if (normalizedPart !== '') {
-      normalizeParts.push(normalizedPart);

Source: GitHub Commit Update

Additionally, a new validation regex was introduced to detect invalid prefix patterns:

typescript
  */
 const VALID_HOST_REGEX = /^[a-z0-9.:-]+$/i;
 
+/**
+ * Regular expression to validate that the prefix is valid.
+ */
+const INVALID_PREFIX_REGEX = /^[/\\]{2}|(?:^|[/\\])\.\.?(?:[/\\]|$)/;
+
 /**
  * Extracts the first value from a multi-value header string.
  *

Source: GitHub Commit Update

Detection Methods for CVE-2026-27738

Indicators of Compromise

  • Unusual X-Forwarded-Prefix header values containing multiple consecutive slashes (e.g., ///, ////)
  • HTTP 3xx redirect responses pointing to external domains not associated with the application
  • Access logs showing requests with malformed prefix headers followed by redirect responses
  • Unexpected outbound connections from user browsers to unknown external domains

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block X-Forwarded-Prefix headers containing double or triple leading slashes
  • Configure reverse proxy or CDN logging to capture and alert on anomalous header values
  • Monitor application redirect responses for destinations outside of expected domain whitelist
  • Review Angular SSR application logs for URL normalization errors or warnings

Monitoring Recommendations

  • Set up alerts for HTTP redirect responses (301, 302, 307, 308) containing protocol-relative URLs in the Location header
  • Monitor cache hit rates and investigate unexpected variations that could indicate cache poisoning attempts
  • Implement real-time log analysis to detect patterns of X-Forwarded-Prefix header manipulation
  • Track user-reported phishing incidents that may indicate exploitation of this vulnerability

How to Mitigate CVE-2026-27738

Immediate Actions Required

  • Upgrade Angular SSR to patched versions: 19.2.21, 20.3.17, 21.1.5, or 21.2.0-rc.1 depending on your branch
  • Review and sanitize X-Forwarded-Prefix header handling in your reverse proxy or CDN configuration
  • Configure cache to vary on the X-Forwarded-Prefix header to prevent cache poisoning
  • Audit application routes that perform internal redirects for potential exposure

Patch Information

Angular has released security patches across all affected version branches. The fix implements a loop-based approach to strip all leading and trailing slashes from URL parts, along with a new validation regex (INVALID_PREFIX_REGEX) that detects invalid prefix patterns including protocol-relative URLs and path traversal sequences.

Patched versions:

  • Version 19.2.21 for the 19.x branch
  • Version 20.3.17 for the 20.x branch
  • Version 21.1.5 for the 21.x branch
  • Version 21.2.0-rc.1 for the 21.2.x release candidate branch

For additional technical details, refer to the GitHub Security Advisory, the GitHub Pull Request, and the GitHub Issue Discussion.

Workarounds

  • Sanitize the X-Forwarded-Prefix header in your server.ts file before the Angular engine processes the request
  • Configure your reverse proxy to strip or validate the X-Forwarded-Prefix header before forwarding to the Angular SSR application
  • Implement an allowlist of valid prefix values at the proxy level
  • Disable forwarding of X-Forwarded-Prefix header if not required for your application's functionality
typescript
// server.ts - Sanitize X-Forwarded-Prefix header before Angular processing
app.use((req, res, next) => {
  const prefix = req.headers['x-forwarded-prefix'];
  if (prefix) {
    // Remove all leading slashes and validate
    const sanitized = String(prefix).replace(/^\/+/, '/');
    if (sanitized.startsWith('//') || sanitized.includes('..')) {
      delete req.headers['x-forwarded-prefix'];
    } else {
      req.headers['x-forwarded-prefix'] = sanitized;
    }
  }
  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

  • EPSS Probability0.04%

  • 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 Commit Update

  • GitHub Issue Discussion

  • GitHub Pull Request

  • GitHub Security Advisory
  • 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
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