Skip to main content

Angular SSR CVE-2026-44437

MEDIUM
Path Traversal (CWE-22)
2026-05-06 https://github.com/angular/angular-cli GHSA-69xr-m8h6-h664
6.9
CVSS 4.0 · Vendor: https://github.com/angular/angular-cli
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Inject encoded traversal header at proxy
  2. Delivery
    Forward to Angular SSR application
  3. Exploit
    Decode %2e%2e to .. in base path
  4. Execution
    Construct manipulated URL for redirect or request
  5. Persist
    Browser or server follows to attacker endpoint or internal service
  6. Impact
    Credential theft or unauthorized internal access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following specific conditions to be present: (1) The Angular SSR application must have the trustProxyHeaders option explicitly enabled in its AngularAppEngine or AngularNodeAppEngine configuration; by default, Angular ignores all X-Forwarded-* headers, so this is a non-default configuration choice. (2) The application must be deployed behind a reverse proxy (load balancer, CDN, API gateway) that forwards the X-Forwarded-Prefix header without prior validation or sanitization. (3) The application logic must perform internal redirects (via Angular router redirectTo) or construct relative URLs in server-side HttpClient requests that utilize the prefix value. (4) The attacker must be able to inject or control the X-Forwarded-Prefix header reaching the SSR process - typically by compromising the proxy layer, exploiting a vulnerability in the proxy configuration, or via man-in-the-middle interception. The vulnerability does NOT affect applications that: (a) do not enable trustProxyHeaders, (b) are not deployed behind a proxy, (c) do not use internal redirects or server-side relative URL construction, or (d) have the proxy layer configured to validate and sanitize X-Forwarded-Prefix headers before forwarding them.

Impact

CVSS vector data is not provided, preventing formal vector-based assessment, but the vulnerability presents moderate-to-significant real-world risk in affected deployment scenarios. The attack requires three specific preconditions: (1) Angular SSR usage, (2) trustProxyHeaders configuration enabled, and (3) an upstream proxy that forwards unsanitized X-Forwarded-Prefix headers. These conditions are NOT default - by design, Angular ignores X-Forwarded-* headers unless explicitly configured via trustProxyHeaders. This substantially limits the affected population compared to a default-vulnerable scenario. However, for organizations that DO enable proxy header trust (common in load-balanced, cloud-native deployments), the impact is high: open redirects can facilitate phishing or credential theft, and server-side request steering can lead to unauthorized access to internal endpoints, data exfiltration, or lateral movement. Exploitation complexity is low (simple crafted header injection with URL encoding) and requires no authentication or user interaction beyond the attacker's ability to control or inject the X-Forwarded-Prefix header at the proxy layer. The vulnerability is not marked as actively exploited (no KEV or POC status provided), suggesting it may be relatively recent or not yet weaponized in the wild. Patch availability since the advisory suggests rapid vendor response. RISK VERDICT: High priority for organizations running Angular SSR with trustProxyHeaders enabled; lower priority for others. The gap between high-impact-if-vulnerable and low-population-affected makes this a 'targeted risk' rather than universal critical severity.

Exploit ScenarioDerived

An attacker positions themselves at the network layer (e.g., compromised proxy, CDN misconfiguration, or man-in-the-middle) or exploits a vulnerable upstream service that accepts user-controlled X-Forwarded-Prefix headers. The attacker injects a crafted header such as X-Forwarded-Prefix: /%2e%2e/evil into a request destined for an Angular SSR application configured with trustProxyHeaders enabled. When the application processes a redirect or constructs a URL for a server-side HttpClient request, it decodes the header to /%2e/evil (removing the encoding), applies it as the base path, and generates a URL pointing to an attacker-controlled endpoint or an internal-only service. The attacker's browser or the server's HTTP client then follows the manipulated redirect or request, leading to credential harvesting (open redirect attack) or unauthorized access to internal systems (request steering attack).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

Angular SSR applications fail to properly validate URL-encoded path traversal sequences in the X-Forwarded-Prefix header, allowing attackers to trigger open redirects or steer server-side HTTP requests to unintended endpoints when the application is configured to trust proxy headers and deployed behind an unsanitized proxy. Exploitation requires the upstream proxy to forward the X-Forwarded-Prefix header without stripping encoded dots (%2e%2e), and the Angular application must perform internal redirects or use relative URLs in server-side HttpClient requests. Vendor-released patches are available for all supported versions.

RemediationAI

Upgrade @angular/ssr immediately to version 22.0.0-next.7 (or later 22.x), 21.2.9 (or later 21.x), 20.3.25 (or later 20.x), or 19.2.25 (or later 19.x), depending on your currently deployed version line. Until patching is feasible, implement immediate server-side sanitization of the X-Forwarded-Prefix header in your server.ts Express middleware by decoding the header value and removing .. sequences and normalizing the leading slash, as provided in the CVE description's workaround code (which removes %2e%2e-encoded traversal attempts before the application processes the header). Alternatively, disable trustProxyHeaders entirely if your infrastructure does not strictly require proxy header support, or configure trustProxyHeaders as a whitelist of specific allowed headers (e.g., trustProxyHeaders: ['x-forwarded-host', 'x-forwarded-proto']) and omit x-forwarded-prefix if not needed. Additionally, ensure your upstream reverse proxy (load balancer, CDN, API gateway) validates and sanitizes the X-Forwarded-Prefix header before forwarding to the Angular SSR application - this is the recommended defense-in-depth approach per Angular documentation. Side effect of disabling trustProxyHeaders: applications behind a reverse proxy will not correctly construct absolute URLs for redirects or server-side requests, potentially breaking functionality in such deployments; whitelist approach preserves this functionality while reducing surface area.

Affected Packages

npm @angular/ssr fix: 19.2.25, 20.3.25, 21.2.9, 22.0.0-next.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Angular SSR applications use the X-Forwarded-Prefix header (when trustProxyHeaders is enabled) to construct the base path for server-side request routing and URL generation. The vulnerability exists in the request URL construction logic within the npm/@angular/ssr package, specifically in how the createRequestUrl and createWebRequestFromNodeRequest functions process this header. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), where URL-encoded traversal sequences (%2e%2e representing encoded dots) bypass validation checks that operate on the decoded form. When the X-Forwarded-Prefix header contains a payload like /%2e%2e/evil, the internal validation mechanism fails to detect the traversal attempt because it checks for literal .. sequences before decoding occurs. Subsequent application logic decodes the header value for use in URL construction or server-side request steering, resulting in path manipulation. This affects versions before 22.0.0-next.7, 21.2.9, 20.3.25, and 19.2.25 of @angular/ssr.

Know when Open Redirect gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/angular/angular-cli) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/angular/angular-cli) · only source for this CVE.

CVSS VectorVendor: https://github.com/angular/angular-cli

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 13, 2026 - 22:22 NVD
6.9 (MEDIUM)
CVE Published
May 06, 2026 - 23:42 nvd
MEDIUM

DescriptionCVE.org

Description

A vulnerability exists in the X-Forwarded-Prefix header processing logic within Angular SSR. The internal validation mechanism fails to properly account for URL-encoded characters, specifically dots (%2e%2e). This allows an attacker to bypass security filters by injecting encoded path traversal sequences that are later decoded and utilized by the application logic. When an Angular SSR application is configured to trust proxy headers and is deployed behind a proxy that forwards the X-Forwarded-Prefix header without prior sanitization, an attacker can provide a payload such as /%2e%2e/evil.

The vulnerability manifests in two ways:

  • Open Redirect: The application processes a redirect (e.g., router redirectTo). The decoded traversal payload manipulates the Location header, forcing the browser to an unintended path or external domain.
  • Server-Side Request Steering: The manipulated prefix is used as the base path for server-side HttpClient requests. This causes the server to make requests to unintended internal paths or external endpoints.

Attack Preconditions

  • The application must use Angular SSR.
  • The application must perform internal redirects or use relative URLs in server-side HttpClient requests.
  • The upstream infrastructure (Reverse Proxy/CDN) must pass the X-Forwarded-Prefix header to the SSR process without stripping or sanitizing it.

Workarounds

Until the patch is applied, developers should manually sanitize the X-Forwarded-Prefix header in their server.ts. The workaround involves decoding the component to catch encoded traversal attempts before normalization:

ts
app.use((req, res, next) => {
  let prefix = req.headers['x-forwarded-prefix'];
  if (Array.isArray(prefix)) prefix = prefix[0];

  if (prefix) {
    try {
      // Decode the prefix to catch encoded characters like %2e (dots)
      const decodedPrefix = decodeURIComponent(prefix);

      // Sanitize: remove traversal attempts and ensure a safe leading slash
      req.headers['x-forwarded-prefix'] = decodedPrefix
        .replace(/\.\./g, '')       // Remove any dot-dot sequences
        .replace(/^[/\\]+/, '/');   // Ensure it starts with exactly one slash
    } catch (e) {
      // If decoding fails, remove the potentially malicious header entirely
      delete req.headers['x-forwarded-prefix'];
    }
  }
  next();
});

Configuring Trusted Proxy Headers

By default, Angular ignores all X-Forwarded-* headers. If your application is behind a trusted reverse proxy (like a load balancer) that sets these headers, you can configure Angular to trust them. You can configure trustProxyHeaders when initializing the application engine:

ts
const appEngine = new AngularAppEngine({
  // Trust specific headers
  trustProxyHeaders: ['x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-prefix'],
});

const nodeAppEngine = new AngularNodeAppEngine({
  // Trust all X-Forwarded-* headers
  trustProxyHeaders: true,
});

Patches

  • 22.0.0-next.7
  • 21.2.9
  • 20.3.25
  • 19.2.25

Resources

  • https://github.com/angular/angular-cli/pull/33031
  • https://angular.dev/best-practices/security#configuring-trusted-proxy-headers

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)CVE.org

pkg:npm/@angular_ssr
pkg:npm/@angular_ssr
pkg:npm/@angular_ssr
pkg:npm/@angular_ssr
CVE-2017-1000117 HIGH POC
8.8 Oct 05

A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca

CVE-2024-52875 HIGH POC
8.8 Jan 31

GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of

CVE-2016-5385 HIGH POC
8.1 Jul 19

PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect

CVE-2013-2248 MEDIUM POC
5.8 Jul 20

Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to

CVE-2018-11784 MEDIUM POC
4.3 Oct 04

When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r

CVE-2022-45402 MEDIUM
6.1 Nov 15

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium

CVE-2012-6499 MEDIUM POC
5.8 Jan 12

Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows

CVE-2015-2863 MEDIUM POC
4.3 Jul 20

Open redirect vulnerability in Kaseya Virtual System Administrator (VSA) 7.x before 7.0.0.29, 8.x before 8.0.0.18, 9.0 b

CVE-2017-3528 MEDIUM POC
5.4 Apr 24

Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li

CVE-2012-0518 MEDIUM
4.7 Oct 16

Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3

CVE-2024-21641 MEDIUM POC
6.5 Jan 05

Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp

CVE-2015-5354 MEDIUM POC
5.8 Jul 01

Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy