CVE-2026-33397
Angular SSR Vulnerable to Protocol-Relative URL Injection via Single Backslash Bypass
Also known as GHSA-vfx2-hv2g-xj5f
Mitigation
- Upgrade @angular/ssr to one of 22.0.0-next.2, 21.2.3, 20.3.21 (or later in the same release line).
Who should check
- Projects that depend on npm package @angular/ssr (>= 22.0.0-next.0, < 22.0.0-next.2)
- Anyone running angular-cli >= 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
Vulnerability facts
- Affected
- @angular/ssr >= 22.0.0-next.0, < 22.0.0-next.2
- Fixed in
- 22.0.0-next.2, 21.2.3, 20.3.21
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.39% chance of exploitation in 30 days (percentile 25, 2026-11-26)
- CWE
- CWE-601
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @angular/ssr | >= 22.0.0-next.0, < 22.0.0-next.2 | 22.0.0-next.2, 21.2.3, 20.3.21 | osv |
| angular-cli | >= 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 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-33397. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-33397.md Affected: @angular/ssr >= 22.0.0-next.0, < 22.0.0-next.2 Fixed in: 22.0.0-next.2, 21.2.3, 20.3.21 Steps: 1. Search this machine and project for @angular/ssr (npm), angular-cli: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-33397 being exploited?
There is no confirmed exploitation: CVE-2026-33397 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-33397?
Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-33397?
@angular/ssr >= 22.0.0-next.0, < 22.0.0-next.2.
Is there a fix for CVE-2026-33397?
Yes. Fixed in 22.0.0-next.2, 21.2.3, 20.3.21. Upgrade @angular/ssr to one of 22.0.0-next.2, 21.2.3, 20.3.21 (or later in the same release line).
How do I check if I'm affected by CVE-2026-33397?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.