@sveltejs/kit · SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically
Affects @sveltejs/kitSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 3.1.1 soon.
Data as of 16 Nov 2026, 15:20 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 3.1.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Upgrade @sveltejs/kit to 3.1.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@sveltejs/kit | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade SvelteKit to version 3.1.1 or later, where the issue is fixed. Since a patch is available and the vulnerability is resolved in the fixed version, applying this update is the recommended remediation.
Description
A vulnerability in SvelteKit versions 3.0.0 up to but not including 3.1.1 allows server-only modules, which should not be included in client bundles, to be mistakenly bundled. This occurs when server-only imports are made through src/params.js, potentially exposing server secrets in client-side code.
References
- github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-128118 (opens in a new tab)
- github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84 (opens in a new tab)
- github.com/sveltejs/kit (opens in a new tab)
- github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1 (opens in a new tab)