{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "20.3.36"
              },
              {
                "introduced": "21.0.0"
              },
              {
                "fixed": "21.2.23"
              },
              {
                "introduced": "22.0.0"
              },
              {
                "fixed": "22.1.7"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "a06ccb3f5f20364bfd0ff47269ac63824652d118"
            },
            {
              "introduced": "9b15fa6d7c257cdf13ccc7e3bdb5723ff334dd6a"
            },
            {
              "fixed": "a9f4dae68fb02e936b2bcae5f2e190296935194c"
            },
            {
              "fixed": "e2582bb34e94457007c4c60b46436abd883d0630"
            },
            {
              "fixed": "7e133c422a0776a4cf68d9636d9b778a845b9f06"
            },
            {
              "fixed": "645e41a47d21b7651837a4250de99af0509626e2"
            },
            {
              "fixed": "70748ca8e76fe4b42798719410336119d943e755"
            },
            {
              "fixed": "bb72145f9ab45aee29f523236b3a25cd0813a841"
            },
            {
              "fixed": "c3e5982e49705f0f6a913cb94622b4c555d2d914"
            }
          ],
          "repo": "https://github.com/angular/angular-cli",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-7g7c-h8rr-7p6q"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104871.json"
  },
  "details": "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.",
  "id": "CVE-2026-104871",
  "modified": "2026-10-04T02:30:15.595678313Z",
  "published": "2026-10-02T19:43:50.475Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/angular/angular-cli/releases/tag/v20.3.36"
    },
    {
      "type": "WEB",
      "url": "https://github.com/angular/angular-cli/releases/tag/v21.2.23"
    },
    {
      "type": "WEB",
      "url": "https://github.com/angular/angular-cli/releases/tag/v22.1.7"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104871.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/angular/angular-cli/security/advisories/GHSA-7g7c-h8rr-7p6q"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104871"
    },
    {
      "type": "FIX",
      "url": "https://github.com/angular/angular-cli/commit/645e41a47d21b7651837a4250de99af0509626e2"
    },
    {
      "type": "FIX",
      "url": "https://github.com/angular/angular-cli/commit/70748ca8e76fe4b42798719410336119d943e755"
    },
    {
      "type": "FIX",
      "url": "https://github.com/angular/angular-cli/commit/bb72145f9ab45aee29f523236b3a25cd0813a841"
    },
    {
      "type": "FIX",
      "url": "https://github.com/angular/angular-cli/commit/c3e5982e49705f0f6a913cb94622b4c555d2d914"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Angular SSR: Path Traversal to Sibling Directories in CommonEngine on Windows"
}