Servers and applications
GHSA-59wf-wmcq-r5j8
Memory exhaustion when reading remote functions `form` request bodies (experimental only)
- Severity
- Medium
- Published
- 25 Nov 2026
- Last changed
- 25 Nov 2026
- Added to UpHeron
- 25 Nov 2026
- Fixed in
- 3.4.1
- Sources
- Project advisories (GitHub)
Description
This only affects applications using the experimental remote functions flag and exposing a form remote function.
When a remote form request is submitted with the application/x-sveltekit-formdata content type, SvelteKit reads the request body incrementally. Memory used while reading the body grew with the number of chunks the body was split into rather than with its size, so a request within BODY_SIZE_LIMIT could cause the server to hold far more memory than the limit suggests.
In addition, when using @sveltejs/adapter-node (or getRequest from @sveltejs/kit/node), a request body that had not finished arriving when the response was sent was not released when the connection closed. If anything else kept the request alive, such as the first request to load a given .remote module, or a timer or pooled connection created during the request, that memory was retained.
Workarounds
Place the application behind a reverse proxy that buffers complete request bodies before forwarding them to the server.
Affected software
| Software | Affected versions |
|---|---|
SvelteKitServers and applications · github:sveltejs/kit |
|
About SvelteKit
web development, streamlined
- Weekly downloads (npm)
- 5,128,894npm, 22 Nov 2026
- GitHub stars
- 20,926GitHub, 22 Nov 2026
- Forks
- 2,391GitHub, 22 Nov 2026
- Latest release
- @sveltejs/[email protected]GitHub, 22 Nov 2026
- Released
- 18 Nov 2026GitHub
- License
- MITGitHub
- First published on GitHub
- 15 Oct 2020GitHub
Vulnerabilities in SvelteKit
- In our list
- 38
- Published in the last 12 months
- 33
- Critical, last 12 months
- 0
- High, last 12 months
- 6
- Known exploited
- 0
- GHSA-c35j-4mwc-3m4jRepeated issue processing in remote form SSR can cause denial of service (experimental only)Medium 25 Nov 2026
- GHSA-ggm8-cv6q-2c35Stack trace handling in production can be made to read arbitrary server files, enabling DoSHigh 25 Nov 2026
- GHSA-5r92-qw5m-rwrrUnbounded array lengths in data parsed from a remote functions `form` enable DoSMedium 25 Nov 2026
- GHSA-x35v-76jc-m8f5ReDoS in SvelteKit route matching for routes with multiple paramsMedium 5.9 25 Nov 2026
- GHSA-cwcj-gpp3-m57mResponses with immutable headers crash adapter-node when `reroute` changes the pathname in apps without server routesLow 25 Nov 2026
- GHSA-4f37-qxr7-j52mMissing `Vary: Accept` on some responses from routes with both a page and an endpoint enables shared cache poisoningMedium 4.8 25 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-59wf-wmcq-r5j8
- github.com https://github.com/sveltejs/kit/security/advisories/GHSA-59wf-wmcq-r5j8