Read the docs

Unvalidated prerendered redirect paths inject rules into Cloudflare _redirects

Priority LOW 27CWE-116Published · Updated

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

EPSS 0.00398 34th percentileScored 2026-11-16
Fix Fixed kit (sveltejs): 7.2.10, 8.0.2@sveltejs/adapter-cloudflare (npm): 7.2.10, 8.0.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
sveltejskit4.7.0 to before 7.2.10; 8.0.0-next.0 to before 8.0.27.2.10, 8.0.2Patch availableCNA
—@sveltejs/adapter-cloudflare (npm)4.7.0 to before 7.2.107.2.10Patch availableGHSA-5wg4-q3ww-283h
—@sveltejs/adapter-cloudflare (npm)8.0.0-next.0 to before 8.0.28.0.2Patch availableGHSA-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

  1. 2026-11-13 Threatist record created from CVE-2026-128122
  2. 2026-11-13 Alias added: GHSA-5wg4-q3ww-283h
  3. 2026-11-13 Fix available: npm/@sveltejs/[email protected], npm/@sveltejs/[email protected] · GHSA-5wg4-q3ww-283h
  4. 2026-11-13 CVSS score added · GHSA-5wg4-q3ww-283h
  5. 2026-11-13 Weakness changed · GHSA-5wg4-q3ww-283h
  6. 2026-11-13 7 new references · GHSA-5wg4-q3ww-283h

References

  • 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
See all 58 →

Sources