SvelteKit Memory Exhaustion Vulnerability in Remote Functions

Vulnerability

A denial-of-service vulnerability has been identified in SvelteKit versions 2.49.0 through 2.49.4. The issue arises in the experimental form remote function, which uses a binary data format to represent submitted form data. An attacker can exploit this vulnerability by sending a specially-crafted payload that causes the server to allocate excessive memory, leading to memory exhaustion. This vulnerability affects SvelteKit applications with experimental remote functions enabled that expose a reachable Remote Form endpoint.

Impact

Exploitation of this vulnerability can cause memory exhaustion on the server, potentially leading to a denial-of-service condition where the application becomes unresponsive or unavailable.

Reproduction

To reproduce this vulnerability, send a request to a SvelteKit Remote Form endpoint with the 'Content-Type' header set to 'application/x-sveltekit-formdata'. Include a payload that specifies a large data length in the header, but only send a small amount of actual data. Stall the connection after sending the header to keep the allocated memory from being released, causing memory exhaustion on the server.

Remediation

Users can upgrade to SvelteKit version 2.49.5, where this vulnerability has been fixed.

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

Vulnerability Rating

Custom Algorithm
spread
2.2
impact
2.5
exploitability
7.8
remediation
7.7
relevance
2.1
threat
4.8
urgency
2.9
incentive
0.0

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