CVE-2026-128117: SvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnames
Published 2026-11-13 · Updated 2026-11-13 · Also known as GHSA-mw6w-2fmv-pvw3
Summary
SvelteKit's adapter-node can crash when the `reroute` function processes malformed percent-encoded pathnames that trigger an unhandled URIError. Developers using affected versions of @sveltejs/kit should update to the provided patches to prevent potential denial-of-service conditions.
Who is affected
The vulnerability allows an attacker to trigger an unhandled exception by submitting specifically crafted, malformed URI paths that the `reroute` hook attempts to process. This leads to an application crash, resulting in a denial-of-service for all users of the affected server instance. Deployments using the default adapter-node are primarily susceptible when `reroute` logic is active.
Exploitability
The vulnerability is rated as Medium severity with a CVSS score of 5.9, requiring network access and specific conditions for exploitation. The current EPSS score of 0.005 indicates a low likelihood of widespread exploit attempts, and the issue is not listed on the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade @sveltejs/kit to version 3.1.1 if using the 3.x branch.
- Upgrade @sveltejs/kit to version 2.70.4 if using the 2.x branch.
How to check your project
- Check the package.json or lockfile (e.g., package-lock.json, yarn.lock) to determine if @sveltejs/kit version is within the ranges 3.0.0-3.1.0 or <2.70.4.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | @sveltejs/kit |
>= 3.0.0, < 3.1.1 | 3.1.1 | npm install @sveltejs/[email protected] |
| npm | @sveltejs/kit |
>= 0, < 2.70.4 | 2.70.4 | npm install @sveltejs/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | High |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What is the primary consequence of this vulnerability?
The primary consequence is a server crash resulting in a denial-of-service, triggered by an unhandled URIError during path rerouting.
Is there evidence of active exploitation for this CVE?
No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
How does the reroute hook interact with this flaw?
The flaw occurs when the `reroute` hook performs an operation that transforms an invalid percent-encoded path into a valid path, subsequently triggering an unhandled exception during server-side processing.
Original advisory description
References
- WEB https://github.com/sveltejs/kit/security/advisories/GHSA-mw6w-2fmv-pvw3
- WEB https://github.com/sveltejs/kit/pull/17620
- WEB https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd
- WEB https://github.com/sveltejs/kit/commit/7993d5ebab017cb1be898a0b1c57371c5da06557
- PACKAGE https://github.com/sveltejs/kit
- WEB https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
- WEB https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]
Source records: GHSA-mw6w-2fmv-pvw3 (OSV.dev) · EPSS by FIRST, 2026-11-26.