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

Medium 5.9 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-128122?

CVE-2026-128122 is a medium-severity vulnerability in sveltejs kit, published on 13 Nov 2026.

Official 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.

Weakness: CWE-93, CWE-79, CWE-116

Which versions are affected by CVE-2026-128122?

2 open source packages ship an affected version, including @sveltejs/adapter-cloudflare.

PackageAffectedFixed in
@sveltejs/adapter-cloudflare npm
pkg:npm/%40sveltejs/adapter-cloudflare
From 4.7.07.2.10
@sveltejs/adapter-cloudflare npm
pkg:npm/%40sveltejs/adapter-cloudflare
From 8.0.0-next.08.0.2
Status by vendor (1)
WhoReleaseStatusPackages
Upstreamfixed@sveltejs/adapter-cloudflare (7.2.10)
pkg:npm/%40sveltejs/adapter-cloudflare

How do I fix CVE-2026-128122?

Upgrade @sveltejs/adapter-cloudflare to a fixed version for your release line: 7.2.10 or 8.0.2.

Is CVE-2026-128122 being exploited?

There is no known exploitation of CVE-2026-128122 in the wild and no public exploit code.

Sources

Also known as GHSA-5wg4-q3ww-283h.

Is CVE-2026-128122 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free