{"schemaVersion":3,"id":"CVE-2026-104871","aliases":["GHSA-7g7c-h8rr-7p6q"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-10-02T19:43:50.475Z","modified":"2026-10-02T20:12:49.364Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":6.3,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.3,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0042,"percentile":0.34874,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-03T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0042,"percentile":0.34874}],"last30":[{"date":"2026-10-03T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0042,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0042,"percentile":0.34874}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"angular","product":"angular-cli","name":"angular-cli","label":"angular-cli","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 20.3.36","noFixRecorded":false,"fixedIn":null},{"text":"≥ 21.0.0, < 21.2.23","noFixRecorded":false,"fixedIn":null},{"text":"≥ 22.0.0, < 22.1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20.3.36 | ≥ 21.0.0, < 21.2.23 | ≥ 22.0.0, < 22.1.7","eol":null,"hubHref":"/vendor/angular/angular-cli"},{"vendor":"@angular","product":"ssr","name":"@angular/ssr","label":"ssr","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@angular/ssr","purlType":"npm","versions":[{"text":"≥ 22.0.0, < 22.1.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 21.0.0, < 21.2.23","noFixRecorded":false,"fixedIn":null},{"text":"≥ 20.0.0, < 20.3.36","noFixRecorded":false,"fixedIn":null},{"text":"≤ 19.2.27","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 22.0.0, < 22.1.7 | ≥ 21.0.0, < 21.2.23 | ≥ 20.0.0, < 20.3.36 | ≤ 19.2.27","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/angular/angular-cli/security/advisories/GHSA-7g7c-h8rr-7p6q","label":"github.com/angular/angular-cli/security/advisories/GHSA-7g7c-h8rr-7p6q","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/angular/angular-cli/commit/645e41a47d21b7651837a4250de99af0509626e2","label":"github.com/angular/angular-cli/commit/645e41a47d21b7651837a4250de99af0509626e2","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/angular/angular-cli/commit/70748ca8e76fe4b42798719410336119d943e755","label":"github.com/angular/angular-cli/commit/70748ca8e76fe4b42798719410336119d943e755","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/angular/angular-cli/commit/bb72145f9ab45aee29f523236b3a25cd0813a841","label":"github.com/angular/angular-cli/commit/bb72145f9ab45aee29f523236b3a25cd0813a841","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/angular/angular-cli/commit/c3e5982e49705f0f6a913cb94622b4c555d2d914","label":"github.com/angular/angular-cli/commit/c3e5982e49705f0f6a913cb94622b4c555d2d914","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/angular/angular-cli/releases/tag/v20.3.36","label":"github.com/angular/angular-cli/releases/tag/v20.3.36","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/angular/angular-cli/releases/tag/v21.2.23","label":"github.com/angular/angular-cli/releases/tag/v21.2.23","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/angular/angular-cli/releases/tag/v22.1.7","label":"github.com/angular/angular-cli/releases/tag/v22.1.7","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104871","label":"nvd.nist.gov/vuln/detail/CVE-2026-104871","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/angular/angular-cli","label":"github.com/angular/angular-cli","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-02T19:43:50.475Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-02T20:12:49.364Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:57:12.994Z","stale":false,"partial":false}}