Intel

AIKIDO-2026-10989

@angular/platform-server is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)CVE-2026-50168 Published May 29, 2026

88

High Risk

This Affects:

JS@angular/platform-server
19.0.0 - 19.2.22
Fixed in 19.2.23
20.0.0 - 20.3.21
Fixed in 20.3.22
21.0.0 - 21.2.14
Fixed in 21.2.15
Are you affected? Scan for Free

TL;DR

Angular SSR URL parsing in @angular/platform-server can be tricked into adopting attacker-controlled origins or bypassing allowedHosts checks. Malformed absolute URLs accepted by lenient parsers, protocol-relative paths, and unsafe config.url values passed to document initialization can hijack PlatformLocation or virtual document origins. Relative HttpClient calls and hostname-derived URLs may then target attacker-controlled hosts. The patch centralizes hardened parseUrl normalization, rejects malformed absolute URLs, and validates URLs before document initialization.

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 Server-Side Request Forgery (SSRF) in versions 21.0.0 - 21.2.14, 20.0.0 - 20.3.21 and 19.0.0 - 19.2.22.

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