Read the docs

Unescaped prerendered paths in SvelteKit Vercel routing config

Priority LOW 27CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

@sveltejs/adapter-vercel before 6.3.5 and from 7.0.0-next.0 before 7.0.2, and @sveltejs/adapter-static before 3.0.11 and from 4.0.0-next.0 before 4.0.1, do not escape regular-expression metacharacters in prerendered paths. An attacker-influenced link crawled during prerendering reaches the generated Vercel routing configuration, which interprets it as a regular expression. A remote attacker can match unintended application paths and expose content or behavior outside the intended path.

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. Prior to @sveltejs/adapter-vercel 6.3.5 and 7.0.2 and @sveltejs/adapter-static 3.0.11 and 4.0.1, an attacker-influenced link crawled during prerendering could be emitted into the generated Vercel routing configuration without escaping regular-expression metacharacters. The configuration could consequently interpret the path as regular-expression syntax, match unintended application paths, and expose content or behavior outside the intended path. This issue is fixed in @sveltejs/adapter-vercel 6.3.5 and 7.0.2 and @sveltejs/adapter-static 3.0.11 and 4.0.1.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0044 38th percentileScored 2026-11-16
Fix Fixed kit (sveltejs): 2.70.4, 3.1.1adapter-vercel (@sveltejs): 6.3.5, 7.0.2+3 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
sveltejskitbefore 2.70.4; 3.0.0-next.0 to before 3.1.12.70.4, 3.1.1Patch availableCNA
sveltejsadapter-vercelbefore 6.3.5; 7.0.0-next.0 to before 7.0.26.3.5, 7.0.2Patch availableCNA
sveltejsadapter-staticbefore 3.0.11; 4.0.0-next.0 to before 4.0.13.0.11, 4.0.1Patch availableCNA
—@sveltejs/adapter-vercel (npm)before 6.3.56.3.5Patch availableGHSA-jf9x-2fg2-hx4w
—@sveltejs/adapter-static (npm)4.0.0-next.0 to before 4.0.14.0.1Patch availableGHSA-jf9x-2fg2-hx4w
—@sveltejs/adapter-vercel (npm)7.0.0-next.0 to before 7.0.27.0.2Patch availableGHSA-jf9x-2fg2-hx4w
—@sveltejs/adapter-static (npm)before 3.0.113.0.11Patch availableGHSA-jf9x-2fg2-hx4w
  • kit Vendorsveltejs Affected before 2.70.4; 3.0.0-next.0 to before 3.1.1 Fixed in 2.70.4, 3.1.1 Patch available CNA
  • adapter-vercel Vendorsveltejs Affected before 6.3.5; 7.0.0-next.0 to before 7.0.2 Fixed in 6.3.5, 7.0.2 Patch available CNA
  • adapter-static Vendorsveltejs Affected before 3.0.11; 4.0.0-next.0 to before 4.0.1 Fixed in 3.0.11, 4.0.1 Patch available CNA
  • @sveltejs/adapter-vercel (npm) Vendor— Affected before 6.3.5 Fixed in 6.3.5 Patch available GHSA-jf9x-2fg2-hx4w
  • @sveltejs/adapter-static (npm) Vendor— Affected 4.0.0-next.0 to before 4.0.1 Fixed in 4.0.1 Patch available GHSA-jf9x-2fg2-hx4w
  • @sveltejs/adapter-vercel (npm) Vendor— Affected 7.0.0-next.0 to before 7.0.2 Fixed in 7.0.2 Patch available GHSA-jf9x-2fg2-hx4w
  • @sveltejs/adapter-static (npm) Vendor— Affected before 3.0.11 Fixed in 3.0.11 Patch available GHSA-jf9x-2fg2-hx4w

Remediation

Upgrade @sveltejs/adapter-vercel to 6.3.5 or 7.0.2 and @sveltejs/adapter-static to 3.0.11 or 4.0.1. The sveltejs/kit package is also listed as affected, with fixes in 2.70.4 and 3.1.1.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

  • Fix · CNA kit (sveltejs) Fixed in 2.70.4, 3.1.1
  • Fix · CNA adapter-vercel (@sveltejs) Fixed in 6.3.5, 7.0.2
  • Fix · CNA adapter-static (@sveltejs) Fixed in 3.0.11, 4.0.1
  • Fix · GHSA-jf9x-2fg2-hx4w @sveltejs/adapter-vercel (npm) Fixed in 6.3.5 Advisory →
  • Fix · GHSA-jf9x-2fg2-hx4w @sveltejs/adapter-static (npm) Fixed in 4.0.1 Advisory →
  • Fix · GHSA-jf9x-2fg2-hx4w @sveltejs/adapter-vercel (npm) Fixed in 7.0.2 Advisory →
  • Fix · GHSA-jf9x-2fg2-hx4w @sveltejs/adapter-static (npm) Fixed in 3.0.11 Advisory →

Timeline

  1. 2026-11-13 Threatist record created from CVE-2026-128121
  2. 2026-11-13 Alias added: GHSA-jf9x-2fg2-hx4w
  3. 2026-11-13 Fix available: npm/@sveltejs/[email protected], npm/@sveltejs/[email protected], npm/@sveltejs/[email protected] +1 · GHSA-jf9x-2fg2-hx4w
  4. 2026-11-13 CVSS score added · GHSA-jf9x-2fg2-hx4w
  5. 2026-11-13 Weakness changed · GHSA-jf9x-2fg2-hx4w
  6. 2026-11-13 9 new references · GHSA-jf9x-2fg2-hx4w
  7. 2026-11-13 CISA SSVC decision points changed

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