{"answers":{"affected":"8 open source packages ship an affected version, including @angular/ssr.","exploited":"There is no known exploitation of CVE-2026-104871 in the wild and no public exploit code.","fix":"Upgrade @angular/ssr to a fixed version for your release line: 20.3.36, 21.2.23 or 22.1.7.","what":"CVE-2026-104871 is a medium-severity path traversal vulnerability in angular-cli, published on 2 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-104871 and fix it if it is affected.\n\nWhat it is: CVE-2026-104871 is a medium-severity path traversal vulnerability in angular-cli, published on 2 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-104871 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @angular/ssr (npm): affected all versions up to 19.2.27; no fix listed\n- @angular/ssr (npm): affected all versions up to 19.2.27; no fix listed\n- @angular/ssr (npm): affected from 20.0.0; fixed in 20.3.36\n- @angular/ssr (npm): affected from 20.0.0; fixed in 20.3.36\n- @angular/ssr (npm): affected from 21.0.0; fixed in 21.2.23\n- @angular/ssr (npm): affected from 21.0.0; fixed in 21.2.23\n- @angular/ssr (npm): affected from 22.0.0; fixed in 22.1.7\n- @angular/ssr (npm): affected from 22.0.0; fixed in 22.1.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-104871/ (Markdown: https://insights.sbomify.com/CVE-2026-104871/index.md)","id":"CVE-2026-104871","markdown":"https://insights.sbomify.com/CVE-2026-104871/index.md","name":"CVE-2026-104871","record":{"aliases":["CLSA-2026-1791302781","CLSA-2026-1791320260","CLSA-2026-1791320540","CLSA-2026-1791320698","CLSA-2026-1791322653","CLSA-2026-1792163463","CLSA-2026-1792163464","CLSA-2026-1792163465","CLSA-2026-1792163466","CLSA-2026-1792163467","CLSA-2026-1792202609","CLSA-2026-1792202610","CLSA-2026-1792202611","CLSA-2026-1792202612","CLSA-2026-1792248409","CLSA-2026-1792248410","CLSA-2026-1792248411","CLSA-2026-1792248412","CLSA-2026-1792279536","CLSA-2026-1792279537","CLSA-2026-1792279538","CLSA-2026-1792279539","CLSA-2026-1792279540","CLSA-2026-1792327355","CLSA-2026-1792327356","CLSA-2026-1792327357","CLSA-2026-1792327358","CLSA-2026-1792339037","CLSA-2026-1792339038","CLSA-2026-1792339039","CLSA-2026-1792339040","CLSA-2026-1792339041","CLSA-2026-1792348155","CLSA-2026-1792348156","CLSA-2026-1792348157","CLSA-2026-1792348158","CLSA-2026-1792348159","CLSA-2026-1792358885","CLSA-2026-1792358886","CLSA-2026-1792358887","CLSA-2026-1792358888","CLSA-2026-1792364766","CLSA-2026-1792364767","CLSA-2026-1792364768","CLSA-2026-1792364769","CLSA-2026-1792364771","GHSA-7g7c-h8rr-7p6q"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Angular SSR library","requires_auth":"none","summary":"An attacker can retrieve sibling prerendered HTML pages on Windows deployments with specific directory structures, exposing limited data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Angular SSR: Path Traversal to Sibling Directories in CommonEngine on Windows","id":"CVE-2026-104871","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":8,"n_references":8,"next":{"headline":"Multiple @opentelemetry/instrumentation-* packages expose database username via unconditional db.user span attribute","id":"CVE-2026-104872"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["19.2.27"],"package":"@angular/ssr","purl":null,"source":"GHSA-7g7c-h8rr-7p6q"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["19.2.27"],"package":"@angular/ssr","purl":"pkg:npm/%40angular/ssr","source":"GHSA-7g7c-h8rr-7p6q"},{"ecosystem":"npm","fixed":["20.3.36"],"introduced":["20.0.0"],"last_affected":[],"package":"@angular/ssr","purl":null,"source":"GHSA-7g7c-h8rr-7p6q"},{"ecosystem":"npm","fixed":["20.3.36"],"introduced":["20.0.0"],"last_affected":[],"package":"@angular/ssr","purl":"pkg:npm/%40angular/ssr","source":"GHSA-7g7c-h8rr-7p6q"},{"ecosystem":"npm","fixed":["21.2.23"],"introduced":["21.0.0"],"last_affected":[],"package":"@angular/ssr","purl":null,"source":"GHSA-7g7c-h8rr-7p6q"},{"ecosystem":"npm","fixed":["21.2.23"],"introduced":["21.0.0"],"last_affected":[],"package":"@angular/ssr","purl":"pkg:npm/%40angular/ssr","source":"GHSA-7g7c-h8rr-7p6q"},{"ecosystem":"npm","fixed":["22.1.7"],"introduced":["22.0.0"],"last_affected":[],"package":"@angular/ssr","purl":null,"source":"GHSA-7g7c-h8rr-7p6q"},{"ecosystem":"npm","fixed":["22.1.7"],"introduced":["22.0.0"],"last_affected":[],"package":"@angular/ssr","purl":"pkg:npm/%40angular/ssr","source":"GHSA-7g7c-h8rr-7p6q"}],"prev":{"headline":"probe-image-size: Quadratic-time Denial of Service in the SVG Parser","id":"CVE-2026-104861"},"products":["angular-cli"],"published":"2026-10-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-02","vendors":["angular"]},"summary":"An attacker can retrieve sibling prerendered HTML pages on Windows deployments with specific directory structures, exposing limited data.","url":"https://insights.sbomify.com/CVE-2026-104871/"}