CVE-2026-44437: @angular/ssr Angular SSR Has Open Redirect Vulnerability
MODERATECVE-2026-44437 is a MODERATE angular ssr has open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting @angular/ssr libraries in the npm ecosystem. The issue involves angular ssr has open redirect and request steering via encoded x-forwarded-prefix. Remediation is available by upgrading affected packages to version 22.0.0-next.7, 21.2.9, 20.3.25, 19.2.25.
CVE-2026-44437 at a Glance
How to Fix CVE-2026-44437
To remediate this vulnerability, upgrade all affected @angular/ssr dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @angular/ssr@22.0.0-next.7
npm install @angular/ssr@21.2.9
npm install @angular/ssr@20.3.25
npm install @angular/ssr@19.2.25
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @angular/ssr
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-44437, inspect your project dependencies using npm:
npm ls @angular/ssr
Analyze the terminal output to locate any version of @angular/ssr in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 22.0.0-next.7), your application is affected.
Note: The npm ls @angular/ssr command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In @angular/ssr, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44437 Affected @angular/ssr Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@angular/ssr
|
npm |
≥ 22.0.0-next.0
< 22.0.0-next.7
|
22.0.0-next.7
|
|
@angular/ssr
|
npm |
≥ 21.0.0-next.0
< 21.2.9
|
21.2.9
|
|
@angular/ssr
|
npm |
≥ 20.0.0-next.0
< 20.3.25
|
20.3.25
|
|
@angular/ssr
|
npm |
≥ 19.0.0-next.0
< 19.2.25
|
19.2.25
|
References
Frequently Asked Questions
What is CVE-2026-44437?
Which @angular/ssr versions are affected?
What version fixes CVE-2026-44437?
Is @angular/ssr affected?
What CWE is associated with CVE-2026-44437?
How can I check npm dependencies for CVE-2026-44437?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-69xr-m8h6-h664",
"modified" : "2026-05-14T20:43:37Z",
"published" : "2026-05-06T23:42:10Z",
"aliases" : [ "CVE-2026-44437" ],
"summary" : "Angular SSR has Open Redirect and Request Steering via Encoded X-Forwarded-Prefix",
"details" : "### Description\nA 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.\nWhen 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`.\n\nThe vulnerability manifests in two ways:\n- 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.\n- 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.\n\n### Attack Preconditions\n- The application must use Angular SSR.\n- The application must perform internal redirects or use relative URLs in server-side `HttpClient` requests.\n- The upstream infrastructure (Reverse Proxy/CDN) must pass the `X-Forwarded-Prefix` header to the SSR process without stripping or sanitizing it.\n\n### Workarounds\nUntil 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:\n\n\n```ts\napp.use((req, res, next) => {\n let prefix = req.headers['x-forwarded-prefix'];\n if (Array.isArray(prefix)) prefix = prefix[0];\n\n if (prefix) {\n try {\n // Decode the prefix to catch encoded characters like %2e (dots)\n const decodedPrefix = decodeURIComponent(prefix);\n \n // Sanitize: remove traversal attempts and ensure a safe leading slash\n req.headers['x-forwarded-prefix'] = decodedPrefix\n .replace(/\\.\\./g, '') // Remove any dot-dot sequences\n .replace(/^[/\\\\]+/, '/'); // Ensure it starts with exactly one slash\n } catch (e) {\n // If decoding fails, remove the potentially malicious header entirely\n delete req.headers['x-forwarded-prefix'];\n }\n }\n next();\n});\n```\n### Configuring Trusted Proxy Headers\nBy 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.\nYou can configure trustProxyHeaders when initializing the application engine:\n\n```ts\nconst appEngine = new AngularAppEngine({\n // Trust specific headers\n trustProxyHeaders: ['x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-prefix'], \n});\n\nconst nodeAppEngine = new AngularNodeAppEngine({\n // Trust all X-Forwarded-* headers\n trustProxyHeaders: true, \n});\n```\n\n### Patches\n- 22.0.0-next.7\n- 21.2.9\n- 20.3.25\n- 19.2.25\n\n### Resources\n\n- https://github.com/angular/angular-cli/pull/33031\n- https://angular.dev/best-practices/security#configuring-trusted-proxy-headers",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/ssr"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "22.0.0-next.0"
}, {
"fixed" : "22.0.0-next.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/ssr"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "21.0.0-next.0"
}, {
"fixed" : "21.2.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/ssr"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "20.0.0-next.0"
}, {
"fixed" : "20.3.25"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/ssr"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "19.0.0-next.0"
}, {
"fixed" : "19.2.25"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/angular/angular-cli/security/advisories/GHSA-69xr-m8h6-h664"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-44437"
}, {
"type" : "WEB",
"url" : "https://github.com/angular/angular-cli/pull/33031"
}, {
"type" : "WEB",
"url" : "https://angular.dev/best-practices/security#configuring-trusted-proxy-headers"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/angular/angular-cli"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-06T23:42:10Z",
"nvd_published_at" : "2026-05-13T22:16:44Z"
}
}