All vulnerabilities

Servers and applications

GHSA-cwcj-gpp3-m57m

Responses with immutable headers crash adapter-node when `reroute` changes the pathname in apps without server routes

Severity
Low
Published
25 Nov 2026
Last changed
25 Nov 2026
Added to UpHeron
25 Nov 2026
Fixed in
3.4.1
Weakness
Uncaught exception (CWE-248)
Sources
Project advisories (GitHub)

Description

In affected versions, @sveltejs/kit can attempt to add a header to a response with immutable headers (such as one returned from fetch or Response.redirect) outside of its error handling. With @sveltejs/adapter-node, the resulting uncaught exception crashes the server, denying service to any other requests routed to it.

Apps are affected if all of the following are true:

  • they use @sveltejs/adapter-node prior to 6.0.2
  • they have no server-rendered routes (for example, every route is prerendered)
  • their reroute hook changes the pathname of a request to a path that is not prerendered
  • their handle hook returns a response with immutable headers for that request

Other adapters, and @sveltejs/[email protected] and later, catch the error and return a 500 response for the affected request instead of crashing, so apps using them are not affected by the denial of service.

Versions of @sveltejs/kit prior to 3.0.0-next.25 are not affected.

From sveltejs/kit's security advisory.

Workarounds

If you cannot upgrade @sveltejs/kit, upgrade @sveltejs/adapter-node to 6.0.2 or later, return a copy of the response from handle (for example, new Response(response.body, response)), or run the server under a process supervisor that restarts it on exit.

Workarounds as given by sveltejs/kit's security advisory.

Affected software

SoftwareAffected versions
SvelteKitServers and applications · github:sveltejs/kit
  • From 3.0.0-next.25 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