# CVE-2026-104871: Angular SSR: Path Traversal to Sibling Directories in CommonEngine on Windows

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

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; 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.62% (percentile 44, 2026-11-28)
- **CWE:** CWE-22
- **Aliases:** GHSA-7g7c-h8rr-7p6q
- **Published:** 2026-10-02T19:43:50.475Z
- **Modified:** 2026-10-06T16:00:36.547Z

## Who should check

- Projects that depend on npm package @angular/ssr (\>= 22.0.0, \< 22.1.7)
- Anyone running angular-cli \< 20.3.36; \>= 21.0.0, \< 21.2.23; \>= 22.0.0, \< 22.1.7

## Description

The Angular SSR is a server-rise rendering tool for Angular applications. Prior to versions 20.3.36, 21.2.23, and 22.1.7, the CommonEngine retrieveSSGPage prerendered-page retrieval logic in @angular/ssr/node, and in @angular/ssr for versions 17 through 18, accepts a relative request URL containing a backslash parent-traversal segment on Windows. The non-special resolve:// URL base preserves the backslash, path.join interprets it as a Windows separator, and the pagePath.startsWith(normalize(publicPath)) check incorrectly accepts a sibling output directory whose name shares the configured public-directory prefix. An unauthenticated requester can therefore retrieve a sibling prerendered HTML page when that page contains the Angular SSG marker. The issue is limited to Windows deployments that pass relative request URLs to CommonEngine.render, have a prefix-sharing sibling output directory, and contain qualifying prerendered Angular HTML; it does not provide arbitrary file read. This issue is fixed in versions 20.3.36, 21.2.23, and 22.1.7.

## Affected and fixed versions

- npm `@angular/ssr`: affected \>= 22.0.0, \< 22.1.7; fixed 22.1.7, 21.2.23, 20.3.36 (osv)
- angular-cli: \< 20.3.36; \>= 21.0.0, \< 21.2.23; \>= 22.0.0, \< 22.1.7 (cvelist)

## Mitigation

- Upgrade @angular/ssr to one of 22.1.7, 21.2.23, 20.3.36 (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-104871. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-104871.md
Affected: @angular/ssr >= 22.0.0, < 22.1.7
Fixed in: 22.1.7, 21.2.23, 20.3.36

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-104871 being exploited?

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

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

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

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

@angular/ssr \>= 22.0.0, \< 22.1.7.

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

Yes. Fixed in 22.1.7, 21.2.23, 20.3.36. Upgrade @angular/ssr to one of 22.1.7, 21.2.23, 20.3.36 (or later in the same release line).

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

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-7g7c-h8rr-7p6q>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-104871>
- patch: <https://github.com/angular/angular-cli/commit/645e41a47d21b7651837a4250de99af0509626e2>
- patch: <https://github.com/angular/angular-cli/commit/70748ca8e76fe4b42798719410336119d943e755>
- patch: <https://github.com/angular/angular-cli/commit/bb72145f9ab45aee29f523236b3a25cd0813a841>
- patch: <https://github.com/angular/angular-cli/commit/c3e5982e49705f0f6a913cb94622b4c555d2d914>
- other: <https://github.com/angular/angular-cli/releases/tag/v20.3.36>
- other: <https://github.com/angular/angular-cli/releases/tag/v21.2.23>
- other: <https://github.com/angular/angular-cli/releases/tag/v22.1.7>
- 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-104871>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7g7c-h8rr-7p6q> (license: <https://creativecommons.org/licenses/by/4.0/>)

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