CVE-2026-128122SvelteKit: Prerendered redirect paths can inject arbitrary rules into the `_redirects` file generated by `@sveltejs/adapter-cloudflare`
- 5.9MediumCVSS base score
- 0.40%Exploitation in 30 daysEPSS · top 65% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 1 day later
· 1 day later
Published
- 5 days later
· 5 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVDNVD · Deferred | 3.1 | Medium5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.40% · top 65% of all CVEs (18 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.9.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@sveltejs/adapter-cloudflareGHSA-5wg4-q3ww-283h (opens in a new tab)
References
References6
- https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h (opens in a new tab)x_refsource_CONFIRM
- https://github.com/sveltejs/kit/pull/17620 (opens in a new tab)x_refsource_MISC
- https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd (opens in a new tab)x_refsource_MISC
- https://github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08a (opens in a new tab)x_refsource_MISC
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected] (opens in a new tab)x_refsource_MISC
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected] (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-125767 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-5wg4-q3ww-283h (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-128122)Record last updated .