CVE-2026-104871
Angular SSR: Path Traversal to Sibling Directories in CommonEngine on Windows
Also known as GHSA-7g7c-h8rr-7p6q
Mitigation
- Upgrade @angular/ssr to one of 22.1.7, 21.2.23, 20.3.36 (or later in the same release line).
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
Vulnerability facts
- Affected
- @angular/ssr >= 22.0.0, < 22.1.7
- Fixed in
- 22.1.7, 21.2.23, 20.3.36
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- 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:NOpen in CVSS calculator
Show all 11 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
- EPSS
- 0.62% chance of exploitation in 30 days (percentile 44, 2026-11-26)
- CWE
- CWE-22
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @angular/ssr | >= 22.0.0, < 22.1.7 | 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Patches
- https://github.com/angular/angular-cli/commit/645e41a47d21b7651837a4250de99af0509626e2
- https://github.com/angular/angular-cli/commit/70748ca8e76fe4b42798719410336119d943e755
- https://github.com/angular/angular-cli/commit/bb72145f9ab45aee29f523236b3a25cd0813a841
- https://github.com/angular/angular-cli/commit/c3e5982e49705f0f6a913cb94622b4c555d2d914
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-26).
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.