Unvalidated prerendered redirect paths inject rules into Cloudflare _redirects
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
SvelteKit from version 4.7.0 before 7.2.10 and from 8.0.0-next.0 before 8.0.2, and @sveltejs/adapter-cloudflare in the same ranges, do not validate prerendered redirect paths before writing them to the Cloudflare _redirects file. An attacker-influenced link crawled during prerendering can place whitespace, control characters, wildcards, or placeholders into such a path (CWE-116). This lets the path create unintended routing rules that can redirect or expose requests beyond the intended prerendered route.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sveltejs | kit | 4.7.0 to before 7.2.10; 8.0.0-next.0 to before 8.0.2 | 7.2.10, 8.0.2 | Patch available | CNA |
| — | @sveltejs/adapter-cloudflare (npm) | 4.7.0 to before 7.2.10 | 7.2.10 | Patch available | GHSA-5wg4-q3ww-283h |
| — | @sveltejs/adapter-cloudflare (npm) | 8.0.0-next.0 to before 8.0.2 | 8.0.2 | Patch available | GHSA-5wg4-q3ww-283h |
- kit Vendorsveltejs Affected 4.7.0 to before 7.2.10; 8.0.0-next.0 to before 8.0.2 Fixed in 7.2.10, 8.0.2 Patch available CNA
- @sveltejs/adapter-cloudflare (npm) Vendor— Affected 4.7.0 to before 7.2.10 Fixed in 7.2.10 Patch available GHSA-5wg4-q3ww-283h
- @sveltejs/adapter-cloudflare (npm) Vendor— Affected 8.0.0-next.0 to before 8.0.2 Fixed in 8.0.2 Patch available GHSA-5wg4-q3ww-283h
Remediation
Update SvelteKit (sveltejs/kit) to 7.2.10 or 8.0.2, and update @sveltejs/adapter-cloudflare to 7.2.10 or 8.0.2 to match your SvelteKit line. The sources list no vendor advisory identifiers for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA kit (sveltejs) Fixed in 7.2.10, 8.0.2
- Fix · GHSA-5wg4-q3ww-283h @sveltejs/adapter-cloudflare (npm) Fixed in 7.2.10 Advisory →
- Fix · GHSA-5wg4-q3ww-283h @sveltejs/adapter-cloudflare (npm) Fixed in 8.0.2 Advisory →
Timeline
- 2026-11-13 Threatist record created from CVE-2026-128122
- 2026-11-13 Alias added: GHSA-5wg4-q3ww-283h
- 2026-11-13 Fix available: npm/@sveltejs/[email protected], npm/@sveltejs/[email protected] · GHSA-5wg4-q3ww-283h
- 2026-11-13 CVSS score added · GHSA-5wg4-q3ww-283h
- 2026-11-13 Weakness changed · GHSA-5wg4-q3ww-283h
- 2026-11-13 7 new references · GHSA-5wg4-q3ww-283h
References
Other 7
- https://github.com/sveltejs/kit/security/advisories/GHSA-5wg4-q3ww-283h
- https://github.com/sveltejs/kit/pull/17620
- https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd
- https://github.com/sveltejs/kit/commit/679e0d84ea9951bb4f1e458a599066b5a451b08a
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- https://github.com/sveltejs/kit
More sveltejs vulnerabilities
- TI-2023-13469 SvelteKit framework has Insufficient CSRF protection for CORS requests CVSS 3.1HIGH 8.8
- TI-2023-13464 SvelteKit has Insufficient Cross-Site Request Forgery Protection CVSS 3.1HIGH 8.8
- TI-2024-15660 Sending a GET or HEAD request with a body crashes SvelteKit CVSS 3.1HIGH 7.5
- TI-2024-30159 Potential mXSS vulnerability due to improper HTML escaping in svelte CVSS 3.1MEDIUM 6.1
- TI-2025-23466 SvelteKit allows XSS via tracked search_params CVSS 3.1MEDIUM 5.4
- TI-2025-13940 Svelte 5.46.0 - Hydratable Key Script-Breakout XSS (SSR) CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-128122 · CVE Program
- CVE-2026-128122 · NVD
- FIRST EPSS
- GHSA-5wg4-q3ww-283h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences