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

Published Nov 13, 2026
·
Updated

If an attacker can influence the links crawled during prerendering, they can influence the redirects entries that are added to the Cloudflare platform redirects generated during the adapt phase of the build.

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
npm/@sveltejs/adapter-cloudflare>=8.0.0-next.0<8.0.2
8.0.2
npm/@sveltejs/adapter-cloudflare>=4.7.0<7.2.10
7.2.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@sveltejs/adapter-cloudflare to a version that resolves this vulnerability.

    Fixed in 8.0.2
  2. Upgrade

    Upgrade npm/@sveltejs/adapter-cloudflare to a version that resolves this vulnerability.

    Fixed in 7.2.10
  3. Upgrade

    Upgrade @sveltejs/adapter-cloudflare to a version that resolves this vulnerability.

    Fixed in 7.2.10
  4. Upgrade

    Upgrade @sveltejs/adapter-cloudflare to a version that resolves this vulnerability.

    Fixed in 8.0.2

Event History

Nov 13, 2026
CVE Published
via MITRE·07:47 PM
Data Sourced
via MITRE·07:47 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:39 PM
Data Sourced
via GitHub·08:39 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using @sveltejs/adapter-cloudflare from version 4.7.0 up to, but not including, 7.2.10 or 8.0.2 are affected when prerendering crawls attacker-influenced links. The issue concerns the Cloudflare _redirects file generated during the build adapt phase.

2

What does an attacker need to exploit this issue?

An attacker must be able to influence links that are crawled during prerendering. Crafted redirect paths containing whitespace, control characters, wildcards, or placeholders can then be written as unintended routing rules in the generated _redirects output.

3

What versions resolve the issue?

Upgrade @sveltejs/adapter-cloudflare to version 7.2.10 or 8.0.2. These versions fix the missing output-context validation for prerendered redirect paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203