# CVE-2026-27739: Angular SSR is vulnerable to SSRF and Header Injection via request handling pipeline

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

- **Severity:** CRITICAL 9.2
- **CVSS:** 9.2 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.57% (percentile 48, 2026-12-02)
- **CWE:** CWE-918
- **Aliases:** GHSA-x288-3778-4hhx
- **Published:** 2026-02-25T16:47:29.705Z
- **Modified:** 2026-06-17T10:27:36.443Z

## Who should check

- Projects that depend on npm package @angular/ssr (\>= 21.2.0-next.0, \< 21.2.0-rc.1)
- Projects that depend on npm package @nguniversal/common (\<= 16.2.0)
- Projects that depend on npm package @nguniversal/express-engine (\<= 16.2.0)
- 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.2.21
- Anyone running angular @nguniversal/common \<= 16.2.0
- Anyone running angular @nguniversal/express-engine \<= 16.2.0

## Description

The Angular SSR is a server-rise rendering tool for Angular applications. Versions prior to 21.2.0-rc.1, 21.1.5, 20.3.17, and 19.2.21 have a Server-Side Request Forgery (SSRF) vulnerability in the Angular SSR request handling pipeline. The vulnerability exists because Angular’s internal URL reconstruction logic directly trusts and consumes user-controlled HTTP headers specifically the Host and \`X-Forwarded-\*\` family to determine the application's base origin without any validation of the destination domain. Specifically, the framework didn't have checks for the host domain, path and character sanitization, and port validation. This vulnerability manifests in two primary ways: implicit relative URL resolution and explicit manual construction. When successfully exploited, this vulnerability allows for arbitrary internal request steering. This can lead to credential exfiltration, internal network probing, and a confidentiality breach. In order to be vulnerable, the victim application must use Angular SSR (Server-Side Rendering), the application must perform \`HttpClient\` requests using relative URLs OR manually construct URLs using the unvalidated \`Host\` / \`X-Forwarded-\*\` headers using the \`REQUEST\` object, the application server must be reachable by an attacker who can influence these headers without strict validation from a front-facing proxy, and the infrastructure (Cloud, CDN, or Load Balancer) must not sanitize or validate incoming headers. Versions 21.2.0-rc.1, 21.1.5, 20.3.17, and 19.2.21 contain a patch. Some workarounds are available. Avoid using \`req.headers\` for URL construction. Instead, use trusted variables for base API paths. Those who cannot upgrade immediately should implement a middleware in their \`server.ts\` to enforce numeric ports and validated hostnames.

## 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)
- npm `@nguniversal/common`: affected \<= 16.2.0; fixed no fix listed yet (osv)
- npm `@nguniversal/express-engine`: affected \<= 16.2.0; fixed no fix listed yet (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.2.21 (cvelist)
- angular @nguniversal/common: \<= 16.2.0 (cvelist)
- angular @nguniversal/express-engine: \<= 16.2.0 (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-27739. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-27739.md
Affected: @angular/ssr >= 21.2.0-next.0, < 21.2.0-rc.1; @nguniversal/common <= 16.2.0; @nguniversal/express-engine <= 16.2.0
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), @nguniversal/common (npm), @nguniversal/express-engine (npm), angular-cli, angular @nguniversal/common, angular @nguniversal/express-engine: 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-27739 being exploited?

There is no confirmed exploitation: CVE-2026-27739 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-12-02).

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

Critical: CVSS 9.2 (v4.0, scored by CNA). Remote, no login needed.

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

@angular/ssr \>= 21.2.0-next.0, \< 21.2.0-rc.1; @nguniversal/common \<= 16.2.0; @nguniversal/express-engine \<= 16.2.0.

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

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-27739?

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-x288-3778-4hhx>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27739>
- patch: <https://github.com/angular/angular-cli/pull/32516>
- other: <https://angular.dev/best-practices/security#preventing-server-side-request-forgery-ssrf>
- other: <https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/SSRF>
- 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-27739>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-x288-3778-4hhx> (license: <https://creativecommons.org/licenses/by/4.0/>)

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