@angular/platform-server is vulnerable to Open Redirect
51
CVE Score
Medium
Open Redirect
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.
Upgrade the @angular/platform-server library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 20.3.32
Fixed in 20.3.3321.0.0 - 21.2.24
Fixed in 21.2.2522.0.0 - 22.2.0
Fixed in 22.2.1@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.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.