- Home
- Vulnerabilities
- CVE-2026-128122
CVE-2026-128122
SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`
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))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| kit | Versions not specified | — | CNA (vendor or assigner) |
npm (2 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| @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
- — CVE published (cve)
CERT-FR advisories
- GHSA-5wg4-q3ww-283h — SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare` 13 Nov 2026
References
- https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283hx_refsource_CONFIRM
- https://github.com/sveltejs/kit/pull/17620x_refsource_MISC
- https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11ddx_refsource_MISC
- https://github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08ax_refsource_MISC
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@7.2.10x_refsource_MISC
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-cloudflare@8.0.2x_refsource_MISC
- https://github.com/sveltejs/kitPACKAGE
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)