@angular/platform-server: URL Parser Differential leading to SSRF Allowlist Bypass (CVE-2026-50168)
A vulnerability in the @angular/platform-server package allows attackers to bypass host allowlist restrictions due to inconsistent URL parsing between the strict WHATWG parser and the lenient Domino parser. This enables server-side request forgery (SSRF) by sending malformed URLs with double port structures, causing the server to route backend HTTP requests to attacker-controlled endpoints. The issue affects Angular applications using server-side rendering with allowedHosts configured and making relative backend requests. Exploitation can lead to unauthorized data exposure and content poisoning in rendered HTML.
AI Analysis
Technical Summary
The vulnerability arises from a parser differential in @angular/platform-server where the strict WHATWG URL parser used for validating host allowlists rejects malformed URLs with double ports (e.g., http://evil.com:80:80), skipping host validation. However, the Domino URL parser later leniently accepts and resolves such URLs to http://evil.com:80. This discrepancy allows attackers to bypass the allowedHosts check and redirect server-side relative HTTP requests to arbitrary external endpoints. The SSR HTTP request interceptor then uses this resolved origin, enabling SSRF attacks and potential response injection into the server-rendered DOM. Successful exploitation requires active SSR, propagation of raw client URL inputs, use of relative outbound HTTP requests, and enabled allowedHosts checks. The vulnerability affects versions <=18.2.14 and is patched in versions 19.2.23 and later.
Potential Impact
Attackers can bypass host allowlist constraints in Angular server-side rendering applications, redirecting backend API requests carrying sensitive credentials and tokens to attacker-controlled servers. This can lead to unauthorized data exposure, SSRF attacks, and injection of malicious content into the server-rendered HTML, potentially compromising end-user security and application integrity.
Mitigation Recommendations
Fixed versions are available starting from 19.2.23 and later. Users should upgrade @angular/platform-server to version 19.2.23 or higher to remediate this vulnerability. Until upgraded, applications should avoid relying solely on allowedHosts for host validation and carefully validate and sanitize incoming URLs and Host headers used in SSR contexts. Patch status is confirmed by the vendor advisory indicating fixes in 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2.
@angular/platform-server: URL Parser Differential leading to SSRF Allowlist Bypass (CVE-2026-50168)
Description
A vulnerability in the @angular/platform-server package allows attackers to bypass host allowlist restrictions due to inconsistent URL parsing between the strict WHATWG parser and the lenient Domino parser. This enables server-side request forgery (SSRF) by sending malformed URLs with double port structures, causing the server to route backend HTTP requests to attacker-controlled endpoints. The issue affects Angular applications using server-side rendering with allowedHosts configured and making relative backend requests. Exploitation can lead to unauthorized data exposure and content poisoning in rendered HTML.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from a parser differential in @angular/platform-server where the strict WHATWG URL parser used for validating host allowlists rejects malformed URLs with double ports (e.g., http://evil.com:80:80), skipping host validation. However, the Domino URL parser later leniently accepts and resolves such URLs to http://evil.com:80. This discrepancy allows attackers to bypass the allowedHosts check and redirect server-side relative HTTP requests to arbitrary external endpoints. The SSR HTTP request interceptor then uses this resolved origin, enabling SSRF attacks and potential response injection into the server-rendered DOM. Successful exploitation requires active SSR, propagation of raw client URL inputs, use of relative outbound HTTP requests, and enabled allowedHosts checks. The vulnerability affects versions <=18.2.14 and is patched in versions 19.2.23 and later.
Potential Impact
Attackers can bypass host allowlist constraints in Angular server-side rendering applications, redirecting backend API requests carrying sensitive credentials and tokens to attacker-controlled servers. This can lead to unauthorized data exposure, SSRF attacks, and injection of malicious content into the server-rendered HTML, potentially compromising end-user security and application integrity.
Mitigation Recommendations
Fixed versions are available starting from 19.2.23 and later. Users should upgrade @angular/platform-server to version 19.2.23 or higher to remediate this vulnerability. Until upgraded, applications should avoid relying solely on allowedHosts for host validation and carefully validate and sanitize incoming URLs and Host headers used in SSR contexts. Patch status is confirmed by the vendor advisory indicating fixes in 19.2.23, 20.3.22, 21.2.15, and 22.0.0-rc.2.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-xrxm-cp7j-8xf6
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50168"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a58b41068715ace43d67d64
Added to database: 07/16/2026, 10:36:00 UTC
Last enriched: 07/16/2026, 10:53:02 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.