CVE-2026-128121
SvelteKit: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static
Impact
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.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @sveltejs/adapter-vercel | < 6.3.5 | 6.3.5 |
| npm | @sveltejs/adapter-static | >= 4.0.0-next.0, < 4.0.1 | 4.0.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| @sveltejs | Adapter-static | from 4.0.0-next.0, before 4.0.1 before 3.0.11 Version < 3.0.11 |
| @sveltejs | Adapter-vercel | from 7.0.0-next.0, before 7.0.2 before 6.3.5 Version < 6.3.5 |
| Sveltejs | Kit | before 2.70.4 from 3.0.0-next.0, before 3.1.1 Version < 2.70.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- 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/adapter-static@3.0.11
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-static@4.0.1
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-vercel@6.3.5
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-vercel@7.0.2
- https://github.com/advisories/GHSA-jf9x-2fg2-hx4w