1. Home
  2. Vulnerabilities
  3. CVE-2026-128122

CVE-2026-128122

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

Published 13 Nov 2026 · modified 18 Nov 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Low 37/100

Summary

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.

Affected products and versions

sveltejs (1 line(s))
sveltejs
ProductVersionsFixed inSource
kit Versions not specified — CNA (vendor or assigner)
npm (2 line(s))
npm
ProductVersionsFixed inSource
@sveltejs/adapter-cloudflare from 4.7.0 (included) to 7.2.10 (excluded) 7.2.10 GitHub Advisory
@sveltejs/adapter-cloudflare from 8.0.0-next.0 (included) to 8.0.2 (excluded) 8.0.2 GitHub Advisory

Fix

Upgrade — npm/@sveltejs/adapter-cloudflare 7.2.10; npm/@sveltejs/adapter-cloudflare 8.0.2official source

Source : GitHub Advisory

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1, CNA:GitHub_M)
Weakness
CWE-79 · Script intersite (XSS)

How this data is obtained and calculated