{"id":"CVE-2026-128122","aliases":["CVE-2026-128122","GHSA-5wg4-q3ww-283h"],"related":[],"kind":"vulnerability","state":"published","title":"SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"If an attacker can influence the links crawled during prerendering, they can influence the redirects entries that are added to the Cloudflare platform redirects generated during the adapt phase of the build.","format":"markdown","source":"ghsa"}],"published":"2026-11-13T19:47:28.720Z","modified":"2026-11-18T05:19:03.407Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-93","CWE-116"],"affected":[{"ranges":[{"version":">= 4.7.0, < 7.2.10","status":"affected"},{"version":">= 8.0.0-next.0, < 8.0.2","status":"affected"}],"vendor":"sveltejs","product":"kit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.7.0","status":"affected","fixed":"7.2.10"}],"ecosystem":"npm","package":"@sveltejs/adapter-cloudflare","purl":"pkg:npm/%40sveltejs/adapter-cloudflare","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"8.0.0-next.0","status":"affected","fixed":"8.0.2"}],"ecosystem":"npm","package":"@sveltejs/adapter-cloudflare","purl":"pkg:npm/%40sveltejs/adapter-cloudflare","source":"ghsa"}],"references":[{"url":"https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/pull/17620","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08a","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@7.2.10","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@8.0.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-18T04:13:17.872Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-128122","url":"https://www.cve.org/CVERecord?id=CVE-2026-128122","licence":"CVE Terms of Use","modified":"2026-11-18T04:13:27.852Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5wg4-q3ww-283h","url":"https://github.com/advisories/GHSA-5wg4-q3ww-283h","licence":"CC-BY-4.0","modified":"2026-11-13T20:45:03.664Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-128122","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128122","licence":"Public domain","modified":"2026-11-18T05:19:03.407Z"}],"updatedAt":"2026-11-25T22:59:50.781Z","epss":{"score":0.00429,"percentile":0.39049,"date":"2026-12-01T12:00:22.000Z"}}