SvelteKit Denial of service and possible SSRF when using prerendering
sveltejs kit
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @sveltejs/kit npm |
|
|
| @sveltejs/adapter-node npm |
|
|
sveltejs kit
| Product | Affected | Fixed in |
|---|---|---|
| @sveltejs/kit npm |
|
|
| @sveltejs/adapter-node npm |
|
|
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.49.5, SvelteKit is vulnerable to a server side request forgery (SSRF) and denial of service (DoS) under certain conditions. From 2.44.0 through 2.49.4, the vulnerability results in a DoS when your app has at least one prerendered route (export const prerender = true). From 2.19.0 through 2.49.4, the vulnerability results in a DoS when your app has at least one prerendered route and you are using adapter-node without a configured ORIGIN environment variable, and you are not using a reverse proxy that implements Host header validation. This vulnerability is fixed in 2.49.5.
From the CVE record · GitHub_M
SvelteKit is vulnerable to server-side request forgery (SSRF) and denial of service (DoS) under certain conditions. An attacker can cause a DoS in versions 2.44.0 through 2.49.4 when an app has at least one prerendered route. Versions 2.19.0 through 2.49.4 are also affected when such an app uses adapter-node without a configured ORIGIN environment variable or a reverse proxy that validates Host headers.
Check apps using @sveltejs/kit versions 2.19.0 through 2.49.4 or @sveltejs/adapter-node versions 5.4.1 through 5.5.0.