SvelteKit path exposure in adapter-vercel and adapter-static routing
sveltejs kit · @sveltejs adapter-vercel · @sveltejs adapter-static
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @sveltejs/adapter-vercel npm |
|
|
| @sveltejs/adapter-static npm |
|
sveltejs kit · @sveltejs adapter-vercel · @sveltejs adapter-static
| Product | Affected | Fixed in |
|---|---|---|
| @sveltejs/adapter-vercel npm |
|
|
| @sveltejs/adapter-static npm |
|
|
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.
From the CVE record · GitHub_M
Affected SvelteKit adapters can emit an attacker-influenced link crawled during prerendering into generated Vercel routing configuration without escaping regular-expression metacharacters. If an attacker can influence such a link, the configuration may match unintended application paths and expose content or behavior outside the intended path.
Check applications using @sveltejs/adapter-vercel versions below 6.3.5 or 7.0.0-next.0 through before 7.0.2, or @sveltejs/adapter-static versions below 3.0.11 or 4.0.0-next.0 through before 4.0.1.