CVE-2026-111754: Open Redirect Vulnerability in @angular/platform-server via Protocol-Relative URLs
Summary
CVE-2026-111754: @angular/platform-server: Open Redirect via Protocol-Relative URLs in Server-Side Rendering (SSR). Affects @angular/platform-server across 4 version ranges.
< 19.2.25
>= 20.0.0, < 20.3.33
>= 21.0.0, < 21.2.25
>= 22.0.0, < 22.2.1
Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The @angular/platform-server package is a core component of the Angular framework, enabling Server-Side Rendering (SSR) for Angular applications. This functionality allows web applications to render content on the server before sending it to the client, improving performance and SEO. However, a vulnerability has been identified that could allow attackers to exploit SSR features to redirect users to malicious external sites.
Vulnerability Detail
An open redirect vulnerability exists in @angular/platform-server when SSR is enabled. The issue arises from the way the ServerPlatformLocation handles URL resolution. Specifically, the method resolveUrl (or parseUrl in version 20) improperly processes protocol-relative URLs. It fails to reject certain malformed URLs that include dot-segments followed by slashes, allowing attackers to craft URLs that redirect users to arbitrary external domains. This can lead to unauthorized access and phishing attacks, as users may be misled into visiting malicious sites.
How To Fix
Latest published version: 22.2.3 as of 22 Oct 2026
npm install @angular/platform-server@22.2.3
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
< 19.2.2519.2.25npm install @angular/platform-server@19.2.25 -
>= 20.0.0, < 20.3.3320.3.33npm install @angular/platform-server@20.3.33 -
>= 21.0.0, < 21.2.2521.2.25npm install @angular/platform-server@21.2.25 -
>= 22.0.0, < 22.2.122.2.1npm install @angular/platform-server@22.2.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
If immediate upgrading is not feasible, consider implementing the following workaround at your edge reverse proxy or Web Application Firewall (WAF):
- Reject Paths with Dot-Segments Followed by Slashes:
Configure your reverse proxy (e.g., Nginx) to block requests containing suspicious path normalization sequences. Here is an example configuration:
# Nginx example: reject suspicious path normalization sequences if ($request_uri ~* "(\n/\.\/|\/\.\;)") { return 400; }
Conclusion
The open redirect vulnerability in @angular/platform-server poses a significant risk to applications utilizing Server-Side Rendering. It is crucial to update to the latest patched versions to ensure the security of your application. If immediate updates are not possible, applying the recommended workarounds can help mitigate potential risks.
See every vulnerability recorded for @angular/platform-server →
FAQ
An open redirect vulnerability allows attackers to redirect users from a legitimate site to a malicious site, potentially leading to phishing attacks or other malicious activities.
You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your package-lock.json without needing to sign up.
Successful exploitation can lead to unauthorized access, phishing attacks, and loss of user trust, as users may be redirected to malicious sites.
No, pure client-side Angular applications (Single Page Applications without SSR) are not vulnerable, as the issue only affects server-side execution environments.
If you cannot upgrade to a patched version, implement the suggested workaround at your edge reverse proxy or WAF to mitigate the risk temporarily.
References
Related vulnerabilities
Recent vulnerabilities recorded for @angular/platform-server.