# CVE-2026-128122: SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-13T19:47:28.720Z
- Modified: 2026-11-18T05:19:03.407Z
- Also known as: GHSA-5wg4-q3ww-283h
- Weaknesses: CWE-79, CWE-93, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- sveltejs kit: >= 4.7.0, < 7.2.10; >= 8.0.0-next.0, < 8.0.2
- @sveltejs/adapter-cloudflare (npm): from 4.7.0 before 7.2.10; from 8.0.0-next.0 before 8.0.2

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h> (web)
- <https://github.com/sveltejs/kit/pull/17620> (web)
- <https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd> (web)
- <https://github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08a> (web)
- <https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@7.2.10> (web)
- <https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@8.0.2> (web)
- <https://github.com/sveltejs/kit> (package)

## Sources

- CVE List: [CVE-2026-128122](https://www.cve.org/CVERecord?id=CVE-2026-128122), CVE Terms of Use, modified 2026-11-18
- GitHub Advisory Database: [GHSA-5wg4-q3ww-283h](https://github.com/advisories/GHSA-5wg4-q3ww-283h), CC-BY-4.0, modified 2026-11-13
- NVD: [CVE-2026-128122](https://nvd.nist.gov/vuln/detail/CVE-2026-128122), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-128122 · Whole record: https://cve.day/CVE-2026-128122.json · Rebuilt by cve.day 2026-11-25T22:59:50.781Z
