CVE-2026-50168High▾ Twilight@angular/platform-server: URL Parser Differential leading to SSRF Allowlist Bypass
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 7.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via GHSA
0.2%
0.2% → 0.2%
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.
Any Angular application utilizing server-side rendering (@angular/platform-server) that configures host routing allowlists (allowedHosts) is vulnerable to this allowlist bypass.
By sending an HTTP request with a malformed Host header (e.g. Host: evil.com:80:80) or an absolute-form request URI, an attacker can bypass the allowlist logic completely (even when configured with a strict default deny setup). The SSR application will then route all relative HttpClient outgoing API queries—which commonly carry sensitive credentials, session cookies, and internal authorization tokens—to the attacker-controlled server instead of the intended backend services. Additionally, the attacker can supply custom payloads back to the emulated DOM, leading to response injection and content poisoning within the rendered HTML served to users.
To successfully exploit this vulnerability, the following environment parameters and application states must all concurrently exist:
@angular/platform-server).config.url to the rendering API (renderApplication or renderModule).this.http.get('/api/data')) that undergo base-URL interceptor rewriting.allowedHosts options to limit valid server locations.@angular/platform-server >= 22.0.0-next.0, < 22.0.0-rc.2@angular/platform-server >= 20.0.0-next.0, < 20.3.22@angular/platform-server >= 19.0.0-next.0, < 19.2.23@angular/platform-server <= 18.2.14@angular/platform-server >= 21.0.0-next.0, < 21.2.15Upgrade to a patched release:
@angular/platform-server 22.0.0-rc.2@angular/platform-server 20.3.22@angular/platform-server 19.2.23@angular/platform-server 21.2.15Connected by shared product, vendor, weakness, or advisory.
CVE-2026-69149HighAngular SSR: Missing Fallback Raw-Content Serialization Escaping leads to Cross-Site Scripting (XSS)
CVE-2026-50555High@angular/platform-server: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE-2025-68616High· 7.5WeasyPrint helps web developers to create PDF documents
CVE-2026-88056High· 8.6Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages
CVE-2021-21985Critical· 9.8The vSphere Client (HTML5) contains a remote code execution vulnerability due to lack of input validation in the Virtual SAN Health Check plug-in which is enabled by default in vCenter Server
CVE-2021-21975High· 7.5Server Side Request Forgery in vRealize Operations Manager API (CVE-2021-21975) prior to 8.4 may allow a malicious actor with network access to the vRealize Operations Manager API can perform a Server Side Request Forgery attack to steal…