CVE-2026-128121

SvelteKit: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static

Medium published · updated · also known as GHSA-JF9X-2FG2-HX4W

5.9
CVSS score out of 10 · NVD (github.com)

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 products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
@sveltejs/adapter-vercel npm < 6.3.56.3.5 GitHub
@sveltejs/adapter-static npm >= 4.0.0-next.0, < 4.0.14.0.1 GitHub
@sveltejs/adapter-vercel npm >= 7.0.0-next.0, < 7.0.27.0.2 GitHub
@sveltejs/adapter-static npm < 3.0.113.0.11 GitHub

References