Skip to content
OpenAdvisories
High · 8.8 CVE-2026-50168 EUVD-2026-38293GHSA-xrxm-cp7j-8xf6

Angular: URL Parser Differential in @angular/platform-server leading to SSRF Allowlist Bypass

Published Jun 22, 2026 · Updated Jun 22, 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-rc.2, 21.2.15, 20.3.22, and 19.2.23, an issue in the @angular/platform-server package allows remote attackers to bypass host allowlist constraints and direct server-side outgoing requests to arbitrary external endpoints. This occurs due to a parser differential between the strict WHATWG URL parser used for allowlist validation and the lenient Domino URL parser used to initialize the server emulated DOM. When a server-side request contains a malformed URL with a double port structure (e.g., http://evil.com:80:80/path), Node's strict URL.canParse(url) logic returns false and skips host check validation entirely. However, the same malformed URL is later accepted and parsed leniently by Domino's internal parser, which resolves the origin to http://evil.com:80. The Angular SSR HTTP request interceptor (relativeUrlsTransformerInterceptorFn) then resolves all relative backend HTTP requests against this adopted origin, executing the SSRF attack. This vulnerability is fixed in 22.0.0-rc.2, 21.2.15, 20.3.22, and 19.2.23.

Affected products

VendorProductAffectedFixed
angular angular >= 22.0.0-next.0, < 22.0.0-rc.2, >= 21.0.0-next.0, < 21.2.15, >= 20.0.0-next.0, < 20.3.22, >= 19.0.0-next.0, < 19.2.23, <= 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-rc.2 22.0.0-rc.2 GHSA-xrxm-cp7j-8xf6
npm @angular/platform-server >= 20.0.0-next.0, < 20.3.22 20.3.22 GHSA-xrxm-cp7j-8xf6
npm @angular/platform-server >= 19.0.0-next.0, < 19.2.23 19.2.23 GHSA-xrxm-cp7j-8xf6
npm @angular/platform-server <= 18.2.14 — GHSA-xrxm-cp7j-8xf6
npm @angular/platform-server >= 21.0.0-next.0, < 21.2.15 21.2.15 GHSA-xrxm-cp7j-8xf6

Advisories 1

References