GHSA-866w-xmhq-wj7x: SvelteKit Prototype Pollution Vulnerability
MODERATEGHSA-866w-xmhq-wj7x is a MODERATE (CVSS 4.3) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting SvelteKit libraries in the npm ecosystem. The issue involves prototype pollution in file input deletion path in remote-function forms. Remediation is available by upgrading affected packages to version 2.69.1.
GHSA-866w-xmhq-wj7x at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L).
How to Fix GHSA-866w-xmhq-wj7x
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.
npm install @sveltejs/kit@2.69.1
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-866w-xmhq-wj7x, 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 2.69.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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. 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
GHSA-866w-xmhq-wj7x Affected SvelteKit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@sveltejs/kit
|
npm |
< 2.69.1
|
2.69.1
|
References
Frequently Asked Questions
What is GHSA-866w-xmhq-wj7x?
Which SvelteKit versions are affected?
What version fixes GHSA-866w-xmhq-wj7x?
Is @sveltejs/kit affected?
What is the CVSS score of GHSA-866w-xmhq-wj7x?
What CWE is associated with GHSA-866w-xmhq-wj7x?
How can I check npm dependencies for GHSA-866w-xmhq-wj7x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-866w-xmhq-wj7x",
"modified" : "2026-07-24T15:58:05Z",
"published" : "2026-07-24T15:58:05Z",
"aliases" : [ ],
"summary" : "SvelteKit: Prototype pollution in file input deletion path in remote-function forms",
"details" : "If you use remote form functions, have an input field of type `file`, and accept arbitrary user-controlled path names for the field, then you are vulnerable to a prototype pollution attack where the attacker can remove e.g. methods on the prototype.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@sveltejs/kit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.69.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.69.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/security/advisories/GHSA-866w-xmhq-wj7x"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/pull/16218"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/commit/df32f6fe86cdd0b68b650e3e4631e5896453dcd3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sveltejs/kit"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@2.69.1"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.0.0-next.7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-24T15:58:05Z",
"nvd_published_at" : null
}
}