SvelteKit Server-Side Request Forgery and Denial-of-Service Vulnerability

Vulnerability

A vulnerability in SvelteKit prior to version 2.49.5 allows for server-side request forgery (SSRF) and denial-of-service (DoS) under certain conditions. The DoS occurs when an application has at least one prerendered route and is using adapter-node without a configured ORIGIN environment variable, and not using a reverse proxy that validates Host headers. The SSRF aspect allows access to internal services that don't require authentication, potentially leading to cache poisoning attacks that could exploit cross-site scripting vulnerabilities.

Impact

Exploitation of this vulnerability causes the server process to terminate, leading to a denial-of-service condition. The SSRF component allows unauthorized access to internal services, which could be exploited to fetch sensitive data or interact with internal applications. Additionally, according to the advisory, it is possible to obtain a cross-site scripting vulnerability via cache poisoning, by forcing a CDN to cache a response containing XSS from the attacker's server.

Remediation

Users can upgrade to SvelteKit version 2.49.5 or later to address this vulnerability. For those using the SvelteKit adapter for Node, version 5.5.1 is available to patch the issue.

Added: Jan 15, 2026, 7:53 PM
Updated: Jan 15, 2026, 7:53 PM

Vulnerability Rating

Custom Algorithm
spread
2.2
impact
2.5
exploitability
9.0
remediation
7.7
relevance
2.1
threat
3.2
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.