{"id":"CVE-2026-104871","published":"2026-10-02T19:43:50Z","modified":"2026-10-02T20:12:49Z","title":"Angular SSR: Path Traversal to Sibling Directories in CommonEngine on Windows","vendor":"angular","product":"angular-cli","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00623,"percentile":0.44184,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/angular/angular-cli/security/advisories/GHSA-7g7c-h8rr-7p6q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/angular-cli/commit/645e41a47d21b7651837a4250de99af0509626e2","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular-cli/commit/70748ca8e76fe4b42798719410336119d943e755","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular-cli/commit/bb72145f9ab45aee29f523236b3a25cd0813a841","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular-cli/commit/c3e5982e49705f0f6a913cb94622b4c555d2d914","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular-cli/releases/tag/v20.3.36","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular-cli/releases/tag/v21.2.23","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular-cli/releases/tag/v22.1.7","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":8.84},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular-cli","versions":["< 20.3.36",">= 21.0.0, < 21.2.23",">= 22.0.0, < 22.1.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-02T20:12:27.563771Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/ssr","vulnerableRanges":[">=22.0.0, <22.1.7",">=21.0.0, <21.2.23",">=20.0.0, <20.3.36","<=19.2.27"],"patched":["22.1.7","21.2.23","20.3.36"],"from":["GHSA-7g7c-h8rr-7p6q"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-91778","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-27739","published":"2026-02-25","fixed":"21.2.0-rc.1","kev":false},{"cve":"CVE-2026-33397","published":"2026-03-26","fixed":"22.0.0-next.2","kev":false},{"cve":"CVE-2026-44437","published":"2026-05-13","fixed":"22.0.0-next.7","kev":false,"link":{"from":"CVE-2026-44437","to":"CVE-2026-104871","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/ssr","fromFixed":"22.0.0-next.7","toFixed":"22.1.7","daysApart":142},{"kind":"version-step","provenance":"source","package":"npm:@angular/ssr","fromFixed":"21.2.9","toFixed":"21.2.23","daysApart":142}]}},{"cve":"CVE-2026-104871","published":"2026-10-02","fixed":"22.1.7","kev":false}],"package":"npm:@angular/ssr"}}