Advisory

GHSA-j62c-4x62-9r35

Also known as: CVE-2025-67647

Summary

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

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-01-15 18:09 UTC
Modified
2026-02-03 03:17 UTC

Affected packages and fixes

@sveltejs/kit

npm · All systems

Affected

  • introduced 2.19.0, fixed 2.49.5 (semver)

Fixed versions

2.49.5

Fix

@sveltejs/adapter-node

npm · All systems

Affected

  • introduced 5.4.1, fixed 5.5.1 (semver)

Fixed versions

5.5.1

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences