Shellfeed logo Shellfeed

CVE-2026-128122 · MEDIUM (CVSS 5.9)

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

EPSS: 0.4% probability of exploitation in the next 30 days (percentile 34.5).

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.

Severity

MEDIUM (CVSS 5.9) — vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

  • npm @sveltejs/adapter-cloudflare [4.7.0 – 7.2.10]
  • npm @sveltejs/adapter-cloudflare [8.0.0-next.0 – 8.0.2]
  • GIT github.com/sveltejs/kit [e9c84a0bb1edf4f4a8f47827ea26458216811789 – 70a5ad21c58266d3e08863b519d9485819b1a776] [a77f5e9a515ff2cb14dece7ed2b0b8ad9e370b2f – 04aac59bad580f01ad08627e464c24f9f74401fe]

References

Posts about CVE-2026-128122