Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @angular/ssr
  4. ›
  5. CVE-2026-33397

CVE-2026-33397: Protocol-Relative URL Injection via Single Backslash Bypass in Angular SSR

March 19, 2026

An Open Redirect vulnerability exists 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 (e.g., \evil.com).
  • The internal validation failed to flag the single backslash as invalid.
  • The application prepends a leading forward slash, resulting in a Location header containing /\evil.com.
  • 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).

References

  • github.com/advisories/GHSA-vfx2-hv2g-xj5f
  • github.com/advisories/GHSA-xh43-g2fq-wjrj
  • github.com/angular/angular-cli
  • github.com/angular/angular-cli/pull/32771
  • github.com/angular/angular-cli/security/advisories/GHSA-vfx2-hv2g-xj5f
  • nvd.nist.gov/vuln/detail/CVE-2026-33397

Code Behaviors & Features

Detect and mitigate CVE-2026-33397 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 20.0.0-next.0 before 20.3.21, all versions starting from 21.0.0-next.0 before 21.2.3, all versions starting from 22.0.0-next.0 before 22.0.0-next.2

Fixed versions

  • 22.0.0-next.2
  • 21.2.3
  • 20.3.21

Solution

Upgrade to versions 20.3.21, 21.2.3, 22.0.0-next.2 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/@angular/ssr/CVE-2026-33397.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 20 Mar 2026 12:18:09 +0000.