GHSA-vrhm-gvg7-fpcf: @sveltejs/kit Memory Exhaustion Vulnerability
MODERATEGHSA-vrhm-gvg7-fpcf is a MODERATE memory exhaustion vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting @sveltejs/kit libraries in the npm ecosystem. The issue involves memory exhaustion in sveltekit remote form deserialization (experimental only). Remediation is available by upgrading affected packages to version 2.52.2.
GHSA-vrhm-gvg7-fpcf at a Glance
How to Fix GHSA-vrhm-gvg7-fpcf
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.
npm install @sveltejs/kit@2.52.2
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-vrhm-gvg7-fpcf, 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. 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
GHSA-vrhm-gvg7-fpcf Affected @sveltejs/kit Versions
1 component(s)| 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-vrhm-gvg7-fpcf?
Which @sveltejs/kit versions are affected?
What version fixes GHSA-vrhm-gvg7-fpcf?
Is @sveltejs/kit affected?
What CWE is associated with GHSA-vrhm-gvg7-fpcf?
How can I check npm dependencies for GHSA-vrhm-gvg7-fpcf?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vrhm-gvg7-fpcf",
"modified" : "2026-02-19T20:29:42Z",
"published" : "2026-02-19T20:29:42Z",
"aliases" : [ ],
"summary" : " Memory exhaustion in SvelteKit remote form deserialization (experimental only)",
"details" : "Versions of `@sveltejs/kit` prior to 2.52.2 with remote functions enabled can be vulnerable to memory exhaustion. Malformed form data can cause the server process to crash due to excessive memory allocation, 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:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
} ],
"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-vrhm-gvg7-fpcf"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/commit/f47c01bd8100328c24fdb8522fe35913b0735f35"
}, {
"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-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-19T20:29:42Z",
"nvd_published_at" : null
}
}