CVE-2026-128121: SvelteKit Remote Code Execution Vulnerability
MODERATECVE-2026-128121 is a MODERATE (CVSS 5.9) remote code execution vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting SvelteKit libraries in the npm ecosystem. The issue involves prerendered paths are interpreted as regular expressions in vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static. Remediation is available by upgrading affected packages to version 6.3.5, 4.0.1, 7.0.2, 3.0.11.
CVE-2026-128121 at a Glance
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:H/I:N/A:N).
How to Fix CVE-2026-128121
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/adapter-vercel@6.3.5
npm install @sveltejs/adapter-static@4.0.1
npm install @sveltejs/adapter-vercel@7.0.2
npm install @sveltejs/adapter-static@3.0.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @sveltejs/adapter-vercel
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-128121, inspect your project dependencies using npm:
npm ls @sveltejs/adapter-vercel
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 6.3.5), your application is affected.
Note: The npm ls @sveltejs/adapter-vercel 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-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. 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
CVE-2026-128121 Affected SvelteKit Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@sveltejs/adapter-vercel
|
npm |
< 6.3.5
|
6.3.5
|
|
@sveltejs/adapter-static
|
npm |
≥ 4.0.0-next.0
< 4.0.1
|
4.0.1
|
|
@sveltejs/adapter-vercel
|
npm |
≥ 7.0.0-next.0
< 7.0.2
|
7.0.2
|
|
@sveltejs/adapter-static
|
npm |
< 3.0.11
|
3.0.11
|
References
Frequently Asked Questions
What is CVE-2026-128121?
Which SvelteKit versions are affected?
What version fixes CVE-2026-128121?
Is @sveltejs/adapter-vercel affected?
Is @sveltejs/adapter-static affected?
What is the CVSS score of CVE-2026-128121?
What CWE is associated with CVE-2026-128121?
How can I check npm dependencies for CVE-2026-128121?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jf9x-2fg2-hx4w",
"modified" : "2026-11-13T20:43:23Z",
"published" : "2026-11-13T20:43:23Z",
"aliases" : [ "CVE-2026-128121" ],
"summary" : "SvelteKit: Prerendered paths are interpreted as regular expressions in Vercel route config generated by @sveltejs/adapter-vercel and @sveltejs/adapter-static",
"details" : "If an attacker could influence a link that was crawled during the prerender phase, that link could later be interpreted as a regex in the Vercel routing configuration.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@sveltejs/adapter-vercel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.3.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sveltejs/adapter-static"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0-next.0"
}, {
"fixed" : "4.0.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sveltejs/adapter-vercel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0-next.0"
}, {
"fixed" : "7.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sveltejs/adapter-static"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/security/advisories/GHSA-jf9x-2fg2-hx4w"
}, {
"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/2ed61a6aa3ac230b89e3528654c587847d1525a0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sveltejs/kit"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-static@3.0.11"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-static@4.0.1"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-vercel@6.3.5"
}, {
"type" : "WEB",
"url" : "https://github.com/sveltejs/kit/releases/tag/@sveltejs/adapter-vercel@7.0.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-116", "CWE-625" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-13T20:43:23Z",
"nvd_published_at" : null
}
}