Skip to content

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

MediumCVSS 6.3 EPSS 0.42%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
angular @angular/ssr(npm) <= 19.2.27; >= 20.0.0, < 20.3.36; >= 21.0.0, < 21.2.23; >= 22.0.0, < 22.1.7 20.3.36, 21.2.23, 22.1.7 Fixed
angular-cli = < 20.3.36; = >= 21.0.0, < 21.2.23; = >= 22.0.0, < 22.1.7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
angular-cli = < 20.3.36 No fix listed
angular-cli = >= 21.0.0, < 21.2.23 No fix listed
angular-cli = >= 22.0.0, < 22.1.7 No fix listed
angular @angular/ssr(npm) >= 22.0.0, < 22.1.7 22.1.7
angular @angular/ssr(npm) >= 21.0.0, < 21.2.23 21.2.23
angular @angular/ssr(npm) >= 20.0.0, < 20.3.36 20.3.36
angular @angular/ssr(npm) <= 19.2.27 No fix listed

References