{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.7.0"
                  },
                  {
                    "fixed": "7.2.10"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "8.0.0-next.0"
                  },
                  {
                    "fixed": "8.0.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "679e0d84ea9951bb4f1e458a599066b5a451b08a"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "e9c84a0bb1edf4f4a8f47827ea26458216811789"
            },
            {
              "fixed": "70a5ad21c58266d3e08863b519d9485819b1a776"
            },
            {
              "introduced": "a77f5e9a515ff2cb14dece7ed2b0b8ad9e370b2f"
            },
            {
              "fixed": "04aac59bad580f01ad08627e464c24f9f74401fe"
            },
            {
              "fixed": "0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd"
            },
            {
              "fixed": "679e0d84ea9951bb4f1e458a599066b5a451b08a"
            }
          ],
          "repo": "https://github.com/sveltejs/kit",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5wg4-q3ww-283h"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-116",
      "CWE-79",
      "CWE-93"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128122.json"
  },
  "details": "SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. From version 4.7.0 until versions 7.2.10 and 8.0.2, @sveltejs/adapter-cloudflare allowed an attacker-influenced link crawled during prerendering to place whitespace, control characters, wildcards, or placeholders into a prerendered redirect path. The adapter wrote those paths into the Cloudflare _redirects output without output-context validation, allowing a path to create unintended routing rules that could redirect or expose requests beyond the intended prerendered route. This issue is fixed in 7.2.10 and 8.0.2.",
  "id": "CVE-2026-128122",
  "modified": "2026-11-14T10:30:34.220604144Z",
  "published": "2026-11-13T19:47:28.720Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128122.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sveltejs/kit/pull/17620"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@7.2.10"
    },
    {
      "type": "WEB",
      "url": "https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@8.0.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-128122"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`"
}