5.9medium
SvelteKit: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.44% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jf9x-2fg2-hx4w
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sveltejs kit | < 2.70.4, >= 3.0.0-next.0, < 3.1.1 | CVE List |
| @sveltejs adapter-vercel | < 6.3.5, >= 7.0.0-next.0, < 7.0.2 | CVE List |
| @sveltejs adapter-static | < 3.0.11, >= 4.0.0-next.0, < 4.0.1 | CVE List |
| @sveltejs/adapter-vercel (npm) | before 6.3.5, from 7.0.0-next.0 before 7.0.2 | GitHub Advisory Database |
| @sveltejs/adapter-static (npm) | from 4.0.0-next.0 before 4.0.1, before 3.0.11 | GitHub Advisory Database |
All scores
| GitHub_M | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
If an attacker could influence a link that was crawled during the prerender phase, that link could later be interpreted as a regex in the Vercel routing configuration.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-128121 changed 2026-11-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jf9x-2fg2-hx4w changed 2026-11-13 | CC-BY-4.0 |
| NVD | CVE-2026-128121 changed 2026-11-13 | Public domain |