All vulnerabilities

Servers and applications

GHSA-ggm8-cv6q-2c35

Stack trace handling in production can be made to read arbitrary server files, enabling DoS

Severity
High
Published
25 Nov 2026
Last changed
25 Nov 2026
Added to UpHeron
25 Nov 2026
Fixed in
3.4.1
Weakness
CWE-73Uncontrolled resource consumption (CWE-400)
Sources
Project advisories (GitHub)

Description

In production on Node.js-compatible runtimes, SvelteKit applies source maps to the stack traces of unexpected server errors before passing them to handleError. The stack trace was parsed in a way that let text from the error message be treated as stack frames, which caused SvelteKit to synchronously read files at attacker-chosen paths on the server. Reading certain special files blocks the event loop and exhausts the server's memory, crashing the process. File contents are not returned in the response.

Applications are affected if an untrusted party can cause an unexpected error whose message includes text they control. Applications using the experimental remote functions flag are affected without any such code in the application, because malformed metadata in a request to a remote command or form produced such an error before the remote function ran, so no authentication is required. Edge runtimes without node:fs and the development server are not affected.

From sveltejs/kit's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
SvelteKitServers and applications · github:sveltejs/kit
  • From 3.0.0-next.11 before 3.4.1

About SvelteKit

web development, streamlined

From its GitHub repository.
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

References