@sveltejs/kit
Affected
- introduced
2.19.0, fixed2.49.5(semver)
Fixed versions
2.49.5
Fix
- Fixed version
2.49.5npm install @sveltejs/[email protected]
Advisory
Also known as: CVE-2025-67647
SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering
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:
export const prerender = true)Affected versions from 2.19.0 onwards are vulnerable to DoS and SSRF if:
export const prerender = true)adapter-node without a configured ORIGIN environment variable, and you are not using a reverse proxy that implements Host header validationImpact
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
High Basis: The source's own band: HIGH
2.19.0, fixed 2.49.5 (semver)2.49.5
2.49.5npm install @sveltejs/[email protected]5.4.1, fixed 5.5.1 (semver)5.5.1
5.5.1npm install @sveltejs/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0