CVE-2026-111754: Open Redirect Vulnerability in @angular/platform-server via Protocol-Relative URLs

@angular/platform-server Updated 20 Oct 2026

Summary

20/10/2026
Yes i
Moderate
5.1

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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.25 19.2.25
    npm install @angular/platform-server@19.2.25
  • >= 20.0.0, < 20.3.33 20.3.33
    npm install @angular/platform-server@20.3.33
  • >= 21.0.0, < 21.2.25 21.2.25
    npm install @angular/platform-server@21.2.25
  • >= 22.0.0, < 22.2.1 22.2.1
    npm 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):

  1. 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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for @angular/platform-server.

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.25 19.2.25
    npm install @angular/platform-server@19.2.25
  • >= 20.0.0, < 20.3.33 20.3.33
    npm install @angular/platform-server@20.3.33
  • >= 21.0.0, < 21.2.25 21.2.25
    npm install @angular/platform-server@21.2.25
  • >= 22.0.0, < 22.2.1 22.2.1
    npm 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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback