Intel

AIKIDO-2026-433029

@angular/platform-server is vulnerable to Open Redirect

Open RedirectGHSA-w739-gvwx-grc3 Published Yesterday

51

Medium Risk

This Affects:

JS@angular/platform-server
0.0.1 - 20.3.32
Fixed in 20.3.33
21.0.0 - 21.2.24
Fixed in 21.2.25
22.0.0 - 22.2.0
Fixed in 22.2.1
Are you affected? Scan for Free

TL;DR

During server side rendering, ServerPlatformLocation passes the incoming request URL to resolveUrl, which only rejects protocol relative URLs whose raw string begins with //, and it does so before WHATWG URL normalization. A URL containing a dot segment followed by extra slashes, such as /.//evil.test, bypasses that raw string check, and the resolved pathname still begins with //. When the rendered URL and the router's final location differ, @angular/ssr writes that pathname into the HTTP Location response header, so browsers follow a redirect to another origin. The fix checks the normalized pathname for a leading // after resolution and rejects it.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@angular/platform-server is vulnerable to Open Redirect in versions 0.0.1 - 20.3.32, 21.0.0 - 21.2.24 and 22.0.0 - 22.2.0.

How to fix this

Upgrade the @angular/platform-server library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform