CVE-2026-128122
SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`
- Severity
- medium CVSS 5.9 (v3.1)
- Affects
- kit · sveltejs
- Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
- Published
- 13 November 2026 by GitHub_M
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.