@angular/platform-server is vulnerable to Server-Side Request Forgery (SSRF)
88
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
@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.
Upgrade the @angular/platform-server library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant