Angular SSR CVE-2026-44437
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject encoded traversal header at proxy
-
DeliveryForward to Angular SSR application
-
ExploitDecode %2e%2e to .. in base path
-
ExecutionConstruct manipulated URL for redirect or request
-
PersistBrowser or server follows to attacker endpoint or internal service
-
ImpactCredential 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
Lifecycle Timeline
2DescriptionCVE.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
HttpClientrequests. 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
HttpClientrequests. - The upstream infrastructure (Reverse Proxy/CDN) must pass the
X-Forwarded-Prefixheader 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:
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:
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
More in Open Redirect
View allA malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca
GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of
PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect
Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to
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
In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium
Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows
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
Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li
Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3
Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp
Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites
GHSA-69xr-m8h6-h664
NVD
CVE.org
EPSS
VulDB
Exploit-DB