GHSA-88qp-p4qg-rqm6: @sveltejs/kit CPU Exhaustion Vulnerability

MODERATE
CWE-843
Published
Advisory Summary

GHSA-88qp-p4qg-rqm6 is a MODERATE cpu exhaustion vulnerability (CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')) affecting @sveltejs/kit libraries in the npm ecosystem. The issue involves cpu exhaustion in sveltekit remote form deserialization (experimental only). Remediation is available by upgrading affected packages to version 2.52.2.

GHSA-88qp-p4qg-rqm6 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-88qp-p4qg-rqm6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
Affected Product @sveltejs/kit
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-88qp-p4qg-rqm6

To remediate this vulnerability, upgrade all affected @sveltejs/kit 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: 2.52.2
npm install @sveltejs/kit@2.52.2
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 GHSA-88qp-p4qg-rqm6, inspect your project dependencies using npm:

npm ls @sveltejs/kit

Analyze the terminal output to locate any version of @sveltejs/kit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.52.2), 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-843: Access of Resource Using Incompatible Type ('Type Confusion'), where the product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type. In @sveltejs/kit, 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

Versions of `@sveltejs/kit` prior to 2.52.2 with remote functions enabled are vulnerable to CPU exhaustion. Malformed form data can cause the server to become unresponsive while processing a request, resulting in denial of service. Only applications using both `experimental.remoteFunctions` and `form` are vulnerable.

GHSA-88qp-p4qg-rqm6 Affected @sveltejs/kit Versions

1 component(s)
Fixed Versions:
2.52.2
Product / Package Ecosystem Affected Versions Fixed Version
@sveltejs/kit
npm
≥ 2.49.0
< 2.52.2
2.52.2

References

Frequently Asked Questions

What is GHSA-88qp-p4qg-rqm6?
GHSA-88qp-p4qg-rqm6 is a security vulnerability in @sveltejs/kit involving CPU exhaustion in SvelteKit remote form deserialization (experimental only) under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion').
Which @sveltejs/kit versions are affected?
Affected versions include releases prior to 2.52.2 across affected packages: @sveltejs/kit.
What version fixes GHSA-88qp-p4qg-rqm6?
Upgrading to 2.52.2 (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 2.52.2. Upgrade your dependency to 2.52.2 or later.
What CWE is associated with GHSA-88qp-p4qg-rqm6?
GHSA-88qp-p4qg-rqm6 is classified under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') (The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.).
How can I check npm dependencies for GHSA-88qp-p4qg-rqm6?
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-88qp-p4qg-rqm6",
  "modified" : "2026-02-19T20:30:26Z",
  "published" : "2026-02-19T20:30:25Z",
  "aliases" : [ ],
  "summary" : "CPU exhaustion in SvelteKit remote form deserialization (experimental only)",
  "details" : "Versions of `@sveltejs/kit` prior to 2.52.2 with remote functions enabled are vulnerable to CPU exhaustion. Malformed form data can cause the server to become unresponsive while processing a request, resulting in denial of service.\n\nOnly applications using both `experimental.remoteFunctions` and `form` are vulnerable.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@sveltejs/kit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.49.0"
      }, {
        "fixed" : "2.52.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.52.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/security/advisories/GHSA-88qp-p4qg-rqm6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/commit/3e607b314aec9e5f278d32847945b8b6323e1cb8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sveltejs/kit"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.52.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-843" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-19T20:30:25Z",
    "nvd_published_at" : null
  }
}