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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.61% (percentile 44, 2026-11-28)
- **CWE:** CWE-601
- **Aliases:** GHSA-xh43-g2fq-wjrj
- **Published:** 2026-02-25T16:40:44.724Z
- **Modified:** 2026-06-17T10:27:36.323Z

## Who should check

- Projects that depend on npm package @angular/ssr (\>= 21.2.0-next.0, \< 21.2.0-rc.1)
- Anyone running angular-cli \>= 21.2.0-next.2, \< 21.2.0-rc.0; \>= 21.0.0-next.0, \< 21.1.5; \>= 20.0.0-next.0, \< 20.3.17; \>= 19.0.0-next.0, \< 19.2.21

## Description

The Angular SSR is a server-rise rendering tool for Angular applications. An Open Redirect vulnerability exists in the internal URL processing logic in versions on the 19.x branch prior to 19.2.21, the 20.x branch prior to 20.3.17, and the 21.x branch prior to 21.1.5 and 21.2.0-rc.1. 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. This vulnerability allows attackers to conduct large-scale phishing and SEO hijacking. In order to be vulnerable, the application must use Angular SSR, the application must have routes that perform internal redirects, the infrastructure (Reverse Proxy/CDN) must pass the \`X-Forwarded-Prefix\` header to the SSR process without sanitization, and the cache must not vary on the \`X-Forwarded-Prefix\` header. Versions 21.2.0-rc.1, 21.1.5, 20.3.17, and 19.2.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

- npm `@angular/ssr`: affected \>= 21.2.0-next.0, \< 21.2.0-rc.1; fixed 21.2.0-rc.1, 21.1.5, 20.3.17, 19.2.21 (osv)
- angular-cli: \>= 21.2.0-next.2, \< 21.2.0-rc.0; \>= 21.0.0-next.0, \< 21.1.5; \>= 20.0.0-next.0, \< 20.3.17; \>= 19.0.0-next.0, \< 19.2.21 (cvelist)

## Mitigation

- Upgrade @angular/ssr to one of 21.2.0-rc.1, 21.1.5, 20.3.17, 19.2.21 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-27738. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27738.md
Affected: @angular/ssr >= 21.2.0-next.0, < 21.2.0-rc.1
Fixed in: 21.2.0-rc.1, 21.1.5, 20.3.17, 19.2.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.
```

## FAQ

### Is CVE-2026-27738 being exploited?

There is no confirmed exploitation: CVE-2026-27738 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-27738?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-27738?

@angular/ssr \>= 21.2.0-next.0, \< 21.2.0-rc.1.

### Is there a fix for CVE-2026-27738?

Yes. Fixed in 21.2.0-rc.1, 21.1.5, 20.3.17, 19.2.21. Upgrade @angular/ssr to one of 21.2.0-rc.1, 21.1.5, 20.3.17, 19.2.21 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-27738?

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.

## References

- vendor: <https://github.com/angular/angular-cli/security/advisories/GHSA-xh43-g2fq-wjrj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27738>
- patch: <https://github.com/angular/angular-cli/pull/32521>
- patch: <https://github.com/angular/angular-cli/commit/877f017ace4b83277d773aa37f5813e5e9faec7e>
- patch: <https://github.com/angular/angular-cli/commit/f086eccc36d10cf01c426e35864bc32e1e292323>
- exploit: <https://github.com/angular/angular-cli/issues/32501>
- other: <https://github.com/angular/angular-cli>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27738>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xh43-g2fq-wjrj> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27738> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27738>
