Unescaped prerendered paths in SvelteKit Vercel routing config
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sveltejs | kit | before 2.70.4; 3.0.0-next.0 to before 3.1.1 | 2.70.4, 3.1.1 | Patch available | CNA |
| sveltejs | adapter-vercel | before 6.3.5; 7.0.0-next.0 to before 7.0.2 | 6.3.5, 7.0.2 | Patch available | CNA |
| sveltejs | adapter-static | before 3.0.11; 4.0.0-next.0 to before 4.0.1 | 3.0.11, 4.0.1 | Patch available | CNA |
| — | @sveltejs/adapter-vercel (npm) | before 6.3.5 | 6.3.5 | Patch available | GHSA-jf9x-2fg2-hx4w |
| — | @sveltejs/adapter-static (npm) | 4.0.0-next.0 to before 4.0.1 | 4.0.1 | Patch available | GHSA-jf9x-2fg2-hx4w |
| — | @sveltejs/adapter-vercel (npm) | 7.0.0-next.0 to before 7.0.2 | 7.0.2 | Patch available | GHSA-jf9x-2fg2-hx4w |
| — | @sveltejs/adapter-static (npm) | before 3.0.11 | 3.0.11 | Patch available | GHSA-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
- 2026-11-13 Threatist record created from CVE-2026-128121
- 2026-11-13 Alias added: GHSA-jf9x-2fg2-hx4w
- 2026-11-13 Fix available: npm/@sveltejs/[email protected], npm/@sveltejs/[email protected], npm/@sveltejs/[email protected] +1 · GHSA-jf9x-2fg2-hx4w
- 2026-11-13 CVSS score added · GHSA-jf9x-2fg2-hx4w
- 2026-11-13 Weakness changed · GHSA-jf9x-2fg2-hx4w
- 2026-11-13 9 new references · GHSA-jf9x-2fg2-hx4w
- 2026-11-13 CISA SSVC decision points changed
References
Other 9
- https://github.com/sveltejs/kit/security/advisories/GHSA-jf9x-2fg2-hx4w
- https://github.com/sveltejs/kit/pull/17620
- https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd
- https://github.com/sveltejs/kit/commit/2ed61a6aa3ac230b89e3528654c587847d1525a0
- 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/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-128121 · CVE Program
- CVE-2026-128121 · NVD
- FIRST EPSS
- GHSA-jf9x-2fg2-hx4w · 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