Vulnerabilities in pkg:npm/@sveltejs/kit

PACKAGE
Advisory Identifier: GHSA-mw6w-2fmv-pvw3
Advisory Summary

CVE-2026-128117 is a MODERATE (CVSS 5.9) adapter-node crashes with an unhandled vulnerability (CWE-248: Uncaught Exception) affecting SvelteKit libraries in the npm ecosystem. The issue involves adapter-node crashes with an unhandled urierror when `reroute` rewrites malformed pathnames. Remediation is available by upgrading affected packages to version 3.1.1, 2.70.4.

18 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@sveltejs/kit

18 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@sveltejs/kit. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mw6w-2fmv-pvw3 CVE-2026-128117 MODERATE SvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnames
GHSA-29g2-3rmr-qm68 CVE-2026-66062 MODERATE SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header
GHSA-866w-xmhq-wj7x - MODERATE SvelteKit: Prototype pollution in file input deletion path in remote-function forms
GHSA-wqjv-9729-c5q2 - MODERATE SvelteKit: Big remote form function payloads can cause Node process to crash
GHSA-hgv7-v322-mmgr - MODERATE @sveltejs/kit: `query.batch` cross-talk
GHSA-3f6h-2hrp-w5wx CVE-2026-40074 MODERATE @sveltejs/kit: Unvalidated redirect in handle hook causes Denial-of-Service
GHSA-2crg-3p73-43xp CVE-2026-40073 HIGH @sveltejs/adapter-node has a BODY_SIZE_LIMIT bypass
GHSA-fpg4-jhqr-589c - LOW SvelteKit has deserialization expansion in unvalidated `form` remote function leading to Denial of Service (experimental only)
GHSA-88qp-p4qg-rqm6 - MODERATE CPU exhaustion in SvelteKit remote form deserialization (experimental only)
GHSA-vrhm-gvg7-fpcf - MODERATE Memory exhaustion in SvelteKit remote form deserialization (experimental only)
GHSA-j2f3-wq62-6q46 CVE-2026-22803 HIGH @sveltejs/kit has memory amplification DoS vulnerability in Remote Functions binary form deserializer (application/x-sveltekit-formdata)
GHSA-j62c-4x62-9r35 CVE-2025-67647 HIGH SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering
GHSA-6q87-84jw-cjhp CVE-2025-32388 MODERATE @sveltejs/kit vulnerable to Cross-site Scripting via tracked search_params
GHSA-rjjv-87mx-6x3h CVE-2024-53261 LOW @sveltejs/kit vulnerable to XSS on dev mode 404 page
GHSA-mh2x-fcqh-fmqv CVE-2024-53262 LOW @sveltejs/kit has unescaped error message included on error page
GHSA-g5m6-hxpp-fc49 CVE-2024-23641 HIGH Sending a GET or HEAD request with a body crashes SvelteKit
GHSA-5p75-vc5g-8rv2 CVE-2023-29003 HIGH SvelteKit vulnerable to Cross-Site Request Forgery
GHSA-gv7g-x59x-wf8f CVE-2023-29008 HIGH SvelteKit framework has Insufficient CSRF protection for CORS requests

CVE-2026-128117 at a Glance

CVE Identifier CVE-2026-128117
GHSA Identifier GHSA-mw6w-2fmv-pvw3
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-248: Uncaught Exception
Affected Product SvelteKit
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-128117

To remediate this vulnerability, upgrade all affected SvelteKit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@sveltejs/kit fixed: 3.1.1
npm install @sveltejs/kit@3.1.1
@sveltejs/kit fixed: 2.70.4
npm install @sveltejs/kit@2.70.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @sveltejs/kit

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-128117, inspect your project dependencies using npm:

npm ls @sveltejs/kit

Analyze the terminal output to locate any version of SvelteKit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), your application is affected.

Note: The npm ls @sveltejs/kit command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-248: Uncaught Exception, where an exception is thrown from a function, but it is not caught. In SvelteKit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

When `reroute` turned an invalid percent-encoded path into a valid path, it could potentially trigger a comparison that would crash the server.

CVE-2026-128117 Affected SvelteKit Versions

2 component(s)
Fixed Versions:
3.1.12.70.4
Product / Package Ecosystem Affected Versions Fixed Version
@sveltejs/kit
npm
≥ 3.0.0
< 3.1.1
3.1.1
@sveltejs/kit
npm
< 2.70.4
2.70.4

References

Frequently Asked Questions

What is CVE-2026-128117?
CVE-2026-128117 is a security vulnerability in SvelteKit involving adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnames under CWE-248: Uncaught Exception.
Which SvelteKit versions are affected?
Affected versions include releases prior to 3.1.1, 2.70.4 across affected packages: @sveltejs/kit.
What version fixes CVE-2026-128117?
Upgrading to 3.1.1, 2.70.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @sveltejs/kit affected?
Yes, @sveltejs/kit is affected in releases prior to 3.1.1, 2.70.4. Upgrade your dependency to 3.1.1, 2.70.4 or later.
What is the CVSS score of CVE-2026-128117?
CVE-2026-128117 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-128117?
CVE-2026-128117 is classified under CWE-248: Uncaught Exception (An exception is thrown from a function, but it is not caught.).
How can I check npm dependencies for CVE-2026-128117?
Run the dependency tree command: 'npm ls @sveltejs/kit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mw6w-2fmv-pvw3",
  "modified" : "2026-11-13T20:51:44Z",
  "published" : "2026-11-13T20:51:44Z",
  "aliases" : [ "CVE-2026-128117" ],
  "summary" : "SvelteKit: adapter-node crashes with an unhandled URIError when `reroute` rewrites malformed pathnames",
  "details" : "When `reroute` turned an invalid percent-encoded path into a valid path, it could potentially trigger a comparison that would crash the server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@sveltejs/kit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@sveltejs/kit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.70.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/security/advisories/GHSA-mw6w-2fmv-pvw3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/pull/17620"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/commit/0a2e58cbccdd46cac20aa5af4e2edf17e0da11dd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/commit/7993d5ebab017cb1be898a0b1c57371c5da06557"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sveltejs/kit"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.70.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-13T20:51:44Z",
    "nvd_published_at" : null
  }
}