CVE-2026-44437: Angular SSR: Open Redirect and Request Steering via Encoded X-Forwarded-Prefix

Published May 6, 2026
·
Updated

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

Other sources

The Angular SSR is a server-rise rendering tool for Angular applications. From 19.0.0-next.0 to before 19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7, 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. This vulnerability is fixed in19.2.25, 20.3.25, 21.2.9, and 22.0.0-next.7.

MITRE

Affected Software

14 affected componentsFixes available
npm/@angular/ssr>=19.0.0-next.0<19.2.25
19.2.25
npm/@angular/ssr>=20.0.0-next.0<20.3.25
20.3.25
npm/@angular/ssr>=21.0.0-next.0<21.2.9
21.2.9
npm/@angular/ssr>=22.0.0-next.0<22.0.0-next.7
22.0.0-next.7
angular Angular Cli Node.js>=19.0.0<19.2.25
angular Angular Cli Node.js>=20.0.0<20.3.25
angular Angular Cli Node.js>=21.0.0<21.2.9
angular Angular Cli Node.js=22.0.0-next0
angular Angular Cli Node.js=22.0.0-next1
angular Angular Cli Node.js=22.0.0-next2
angular Angular Cli Node.js=22.0.0-next3
angular Angular Cli Node.js=22.0.0-next4
angular Angular Cli Node.js=22.0.0-next5
angular Angular Cli Node.js=22.0.0-next6

Event History

May 6, 2026
Advisory Published
via GitHub·11:42 PM
Data Sourced
via GitHub·11:42 PM
DescriptionWeaknessAffected Software
May 13, 2026
CVE Published
via MITRE·09:23 PM
Data Sourced
via MITRE·09:23 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-44437?

The severity of CVE-2026-44437 is considered high due to the potential for an attacker to exploit the vulnerability for malicious purposes.

2

How do I fix CVE-2026-44437?

To fix CVE-2026-44437, update the @angular/ssr package to version 19.2.25 or higher, depending on your existing version.

3

What software is affected by CVE-2026-44437?

CVE-2026-44437 affects versions of the @angular/ssr package from 19.0.0-next.0 up to 22.0.0-next.7.

4

Can CVE-2026-44437 be exploited remotely?

Yes, CVE-2026-44437 can potentially be exploited remotely by an attacker manipulating the X-Forwarded-Prefix header.

5

What are the potential impacts of CVE-2026-44437?

The potential impacts of CVE-2026-44437 include unauthorized access to resources and bypassing security filters.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203