Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @angular/platform-server
  4. ›
  5. CVE-2026-50168

CVE-2026-50168: @angular/platform-server: URL Parser Differential leading to SSRF Allowlist Bypass

June 15, 2026

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.

References

  • github.com/advisories/GHSA-xrxm-cp7j-8xf6
  • github.com/angular/angular/pull/68928
  • github.com/angular/angular/security/advisories/GHSA-xrxm-cp7j-8xf6
  • nvd.nist.gov/vuln/detail/CVE-2026-50168

Code Behaviors & Features

Detect and mitigate CVE-2026-50168 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 18.2.14, all versions starting from 19.0.0-next.0 before 19.2.23, all versions starting from 20.0.0-next.0 before 20.3.22, all versions starting from 21.0.0-next.0 before 21.2.15, all versions starting from 22.0.0-next.0 before 22.0.0-rc.2

Fixed versions

  • 19.2.23
  • 20.3.22
  • 21.2.15
  • 22.0.0-rc.2

Solution

Upgrade to versions 19.2.23, 20.3.22, 21.2.15, 22.0.0-rc.2 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-346: Origin Validation Error
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/@angular/platform-server/CVE-2026-50168.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 16 Jun 2026 12:17:48 +0000.