Skip to content

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

MediumCVSS 5.9 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
sveltejs @sveltejs/adapter-cloudflare(npm) >= 4.7.0, < 7.2.10; >= 8.0.0-next.0, < 8.0.2 7.2.10, 8.0.2 Fixed
sveltejs @sveltejs/kit = >= 4.7.0, < 7.2.10; = >= 8.0.0-next.0, < 8.0.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
sveltejs @sveltejs/adapter-cloudflare(npm) >= 4.7.0, < 7.2.10 7.2.10
sveltejs @sveltejs/adapter-cloudflare(npm) >= 8.0.0-next.0, < 8.0.2 8.0.2
sveltejs @sveltejs/kit = >= 4.7.0, < 7.2.10 No fix listed
sveltejs @sveltejs/kit = >= 8.0.0-next.0, < 8.0.2 No fix listed

References