Packages / @sveltejs/kit / Security
HighVulnerabilityGHSA-m9j8-jcmv-hp69CVE-2026-128118Published 16 Nov 2026
SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle
Your version
Affected releases · @sveltejs/kit
- 3.x3.0.0 – 3.1.0Fixed in 3.1.1
On 3.x, the newest line:
npm install @sveltejs/kit@3.1.1Every release on a timeline
Not affected
0.0.8 – 2.70.4
387 releases
Affected
3.0.0 – 3.1.0
3 releases
Fixed
3.1.1 – 3.4.0
6 releases
What happens
Under certain circumstances, server-only imports, which typically cannot be included in the client bundle, could make their way into it, potentially exposing secrets. This could only occur when those server-only imports were made through src/params.js.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.