{"id":"CVE-2026-33397","published":"2026-03-26T13:46:16Z","modified":"2026-03-30T14:56:05Z","title":"Angular SSR Vulnerable to Protocol-Relative URL Injection via Single Backslash Bypass","vendor":"angular","product":"angular-cli","tier":"tail","description":{"text":"The Angular SSR is a server-rise rendering tool for Angular applications. Versions on the 22.x branch prior to 22.0.0-next.2, the 21.x branch prior to 21.2.3, and the 20.x branch prior to 20.3.21 have an Open Redirect vulnerability in `@angular/ssr` due to an incomplete fix for CVE-2026-27738. While the original fix successfully blocked multiple leading slashes (e.g., `///`), the internal validation logic fails to account for a single backslash (`\\`) bypass. When an Angular SSR application is deployed behind a proxy that passes the `X-Forwarded-Prefix` header, an attacker provides a value starting with a single backslash, the internal validation failed to flag the single backslash as invalid, the application prepends a leading forward slash, resulting in a `Location` header containing the URL, and modern browsers interpret the `/\\` sequence as `//`, treating it as a protocol-relative URL and redirecting the user to the attacker-controlled domain. Furthermore, the response lacks the `Vary: X-Forwarded-Prefix` header, allowing the malicious redirect to be stored in intermediate caches (Web Cache Poisoning). Versions 22.0.0-next.2, 21.2.3, and 20.3.21 contain a patch. Until the patch is applied, developers should sanitize the `X-Forwarded-Prefix` header in their `server.ts` before the Angular engine processes the request.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00289,"percentile":0.21794,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/angular/angular-cli/security/advisories/GHSA-vfx2-hv2g-xj5f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/angular-cli/pull/32771","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-xh43-g2fq-wjrj","tags":["x_refsource_MISC"]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":4.36},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular-cli","versions":[">= 22.0.0-next.0, < 22.0.0-next.2",">= 21.0.0-next.0, < 21.2.3",">= 20.0.0-next.0, < 20.3.21"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-30T13:54:22.310595Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/ssr","vulnerableRanges":[">=22.0.0-next.0, <22.0.0-next.2",">=21.0.0-next.0, <21.2.3",">=20.0.0-next.0, <20.3.21"],"patched":["22.0.0-next.2","21.2.3","20.3.21"],"from":["GHSA-vfx2-hv2g-xj5f"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-20064","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-angular-cli-cve-2026-27738","parents":[{"from":"CVE-2026-27738","to":"CVE-2026-33397","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"Versions on the 22.x branch prior to 22.0.0-next.2, the 21.x branch prior to 21.2.3, and the 20.x branch prior to 20.3.21 have an Open Redirect vulnerability in `@angular/ssr` due to an incomplete fix for CVE-2026-27738.","from":"CVE.org","in":"CVE-2026-33397"},{"kind":"osv-related","provenance":"source","id":"GHSA-xh43-g2fq-wjrj","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-vfx2-hv2g-xj5f","via":"reference","url":"https://github.com/advisories/GHSA-xh43-g2fq-wjrj"},{"kind":"similar","provenance":"machine","score":0.41,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2025-62427","published":"2025-10-16","fixed":"21.0.0-next.8","kev":false},{"cve":"CVE-2026-27738","published":"2026-02-25","fixed":"21.2.0-rc.1","kev":false},{"cve":"CVE-2026-27739","published":"2026-02-25","fixed":"21.2.0-rc.1","kev":false,"link":{"from":"CVE-2026-27739","to":"CVE-2026-33397","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/ssr","fromFixed":"21.2.0-rc.1","toFixed":"21.2.3","daysApart":29},{"kind":"version-step","provenance":"source","package":"npm:@angular/ssr","fromFixed":"20.3.17","toFixed":"20.3.21","daysApart":29}]}},{"cve":"CVE-2026-33397","published":"2026-03-26","fixed":"22.0.0-next.2","kev":false},{"cve":"CVE-2026-44437","published":"2026-05-13","fixed":"22.0.0-next.7","kev":false,"link":{"from":"CVE-2026-33397","to":"CVE-2026-44437","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/ssr","fromFixed":"22.0.0-next.2","toFixed":"22.0.0-next.7","daysApart":48},{"kind":"version-step","provenance":"source","package":"npm:@angular/ssr","fromFixed":"21.2.3","toFixed":"21.2.9","daysApart":48}]}},{"cve":"CVE-2026-104871","published":"2026-10-02","fixed":"22.1.7","kev":false}],"package":"npm:@angular/ssr"}}