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

CVE-2026-27738: Angular SSR has an Open Redirect via X-Forwarded-Prefix

February 25, 2026

An Open Redirect vulnerability exists in the internal URL processing logic in Angular SSR. The logic normalizes URL segments by stripping leading slashes; however, it only removes a single leading slash.

When an Angular SSR application is deployed behind a proxy that passes the X-Forwarded-Prefix header, an attacker can provide a value starting with three slashes (e.g., ///evil.com).

  1. The application processes a redirect (e.g., from a router redirectTo or i18n locale switch).
  2. Angular receives ///evil.com as the prefix.
  3. It strips one slash, leaving //evil.com.
  4. The resulting string is used in the Location header.
  5. Modern browsers interpret // as a protocol-relative URL, redirecting the user from https://your-app.com to https://evil.com.

References

  • github.com/advisories/GHSA-xh43-g2fq-wjrj
  • github.com/angular/angular-cli
  • github.com/angular/angular-cli/commit/f086eccc36d10cf01c426e35864bc32e1e292323
  • github.com/angular/angular-cli/issues/32501
  • github.com/angular/angular-cli/pull/32521
  • github.com/angular/angular-cli/security/advisories/GHSA-xh43-g2fq-wjrj
  • nvd.nist.gov/vuln/detail/CVE-2026-27738

Code Behaviors & Features

Detect and mitigate CVE-2026-27738 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 19.0.0-next.0 before 19.2.21, all versions starting from 20.0.0-next.0 before 20.3.17, all versions starting from 21.0.0-next.0 before 21.1.5, all versions starting from 21.2.0-next.0 before 21.2.0-rc.1

Fixed versions

  • 21.2.0-rc.1
  • 21.1.5
  • 20.3.17
  • 19.2.21

Solution

Upgrade to versions 19.2.21, 20.3.17, 21.1.5, 21.2.0-rc.1 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-27738.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 26 Feb 2026 12:17:53 +0000.