Angular SSRF in @angular/platform-server before 22.0.0-next.12, 21.2.13
CVE-2026-46417 Published on June 22, 2026
Angular: SSRF via Hostname Hijacking in @angular/platform-server
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 22.0.0-next.12, 21.2.13, 20.3.21, and 19.2.22, a Server-Side Request Forgery (SSRF) vulnerability exists in @angular/platform-server. The issue stems from how the server-side rendering (SSR) engine processes the request URL provided to the rendering entry points. When an absolute-form URL (e.g., http://evil.com) is passed to the rendering engine, the internal ServerPlatformLocation can be manipulated into adopting the attacker-controlled domain as the "current" hostname. Consequently, any relative HttpClient requests or PlatformLocation.hostname references are redirected to the attacker controlled server, potentially exposing internal APIs or metadata services. This vulnerability is fixed in 22.0.0-next.12, 21.2.13, 20.3.21, and 19.2.22.
Weakness Type
What is a SSRF Vulnerability?
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. By providing URLs to unexpected hosts or ports, attackers can make it appear that the server is sending the request, possibly bypassing access controls such as firewalls that prevent the attackers from accessing the URLs directly. The server can be used as a proxy to conduct port scanning of hosts in internal networks, use other URLs such as that can access documents on the system (using file://), or use other protocols such as gopher:// or tftp://, which may provide greater control over the contents of requests.
CVE-2026-46417 has been classified to as a SSRF vulnerability or weakness.
Products Associated with CVE-2026-46417
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-46417 are published in these products:
Affected Versions
angular:- Version >= 22.0.0-next.0, < 22.0.0-next.12 is affected.
- Version >= 21.0.0-next.0, < 21.2.13 is affected.
- Version >= 20.0.0-next.0, < 20.3.21 is affected.
- Version >= 19.0.0-next.0, < 19.2.22 is affected.
- Version <= 18.2.14 is affected.