Packages / @sveltejs/kit / Security

HighVulnerabilityGHSA-j62c-4x62-9r35CVE-2025-67647Published 15 Jan 2026

SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering

Affected releases · @sveltejs/kit

  • 2.x2.19.0 – 2.49.4Fixed in 2.49.5

On 2.x, the newest line:

npm install @sveltejs/kit@2.49.5
3.x
  1. Not affected

    3.0.0 – 3.1.0

    3 releases, latest

2.x
  1. Not affected

    2.0.0 – 2.18.0

    96 releases

  2. Affected

    2.19.0 – 2.49.4

    98 releases

  3. Fixed

    2.49.5 – 2.70.3

    43 releases

389 stable releases of @sveltejs/kit, oldest to newest, one row per major.

Is your project affected?

Paste your package.json, or type the range you declare for @sveltejs/kit. It is read in your browser and sent nowhere.

What happens

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