GHSA-j62c-4x62-9r35
SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering
Quick fix
GHSA-j62c-4x62-9r35 — @sveltejs/kit: upgrade to the fixed version with the command below.
npm install @sveltejs/kit@2.49.5Details
### Summary
Versions of SvelteKit are vulnerable to a server side request forgery (SSRF) and denial of service (DoS) under certain conditions.
### Details
Affected versions from 2.44.0 onwards are vulnerable to DoS if:
- your app has at least one prerendered route (`export const prerender = true`)
Affected versions from 2.19.0 onwards are vulnerable to DoS and SSRF if:
- your app has at least one prerendered route (`export const prerender = true`) - 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
### Impact
The DoS causes the running server process to end.
The SSRF allows access to internal services that can be reached without authentication when fetched from SvelteKit's server runtime.
It is also possible to obtain an SXSS via cache poisoning, by forcing a potential CDN to cache an XSS returned by the attacker's server (the latter being able to specify the cache-control of their choice).
### Credits - Allam Rachid ([zhero;](https://zhero-web-sec.github.io/research-and-things/)) - Allam Yasser (inzo) - d-xuan ([wednesday](https://d-xuan.github.io/wednesday/))
Are you affected?
Enter the version of the package you're using.
Affected packages
5.4.1Fixed in: 5.5.1npm install @sveltejs/adapter-node@5.5.1References
- https://github.com/sveltejs/kit/security/advisories/GHSA-j62c-4x62-9r35[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2025-67647[ADVISORY]
- https://github.com/sveltejs/kit/commit/d9ae9b00b14f5574d109f3fd548f960594346226[WEB]
- https://github.com/sveltejs/kit[PACKAGE]
- https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fadapter-node%405.5.1[WEB]
- https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.49.5[WEB]