Skip to content
OpenAdvisories
High · 8.8 CVE-2026-46417 EUVD-2026-38294GHSA-rfh7-fxqc-q52v

Angular: SSRF via Hostname Hijacking in @angular/platform-server

Published Jun 22, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
angular angular >= 22.0.0-next.0, < 22.0.0-next.12, >= 21.0.0-next.0, < 21.2.13, >= 20.0.0-next.0, < 20.3.21, >= 19.0.0-next.0, < 19.2.22, <= 18.2.14 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 angular.js No fix yet —
Debian 12 angular.js No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 angular.js No fix yet —
Ubuntu 26.04 LTS angular.js No fix yet —
Ubuntu 25.10 angular.js No fix yet —
Ubuntu 24.04 LTS angular.js No fix yet —
Ubuntu 22.04 LTS angular.js No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS angular.js No fix yet —
Ubuntu Pro 18.04 LTS angular.js No fix yet —
Ubuntu Pro 16.04 LTS angular.js No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @angular/platform-server >= 22.0.0-next.0, < 22.0.0-next.12 22.0.0-next.12 GHSA-rfh7-fxqc-q52v
npm @angular/platform-server >= 21.0.0-next.0, < 21.2.13 21.2.13 GHSA-rfh7-fxqc-q52v
npm @angular/platform-server >= 20.0.0-next.0, < 20.3.21 20.3.21 GHSA-rfh7-fxqc-q52v
npm @angular/platform-server >= 19.0.0-next.0, < 19.2.22 19.2.22 GHSA-rfh7-fxqc-q52v
npm @angular/platform-server <= 18.2.14 — GHSA-rfh7-fxqc-q52v

Advisories 1

References