SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle
CVE-2026-128118 · GHSA-m9j8-jcmv-hp69 · EUVD-2026-125730 · published 13 Nov 2026
How serious is it
- Severity: high, CVSS score 7.5 out of 10.
- Exploit prediction (EPSS): 0.3% chance of exploitation in the next 30 days, higher than 21% of all vulnerabilities.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-128118?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
@sveltejs/kit(npm) >= 3.0.0, <= 3.1.0
How to check
- Run
npm ls @sveltejs/kitin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
- Or run
npx shippable-dev scan localhost:3000in your project folder. It reads your lockfile and flags this vulnerability along with every other known one.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- Upgrade
@sveltejs/kitto 3.1.1 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
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`.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69
- github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84
- github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1
- nvd.nist.gov/vuln/detail/CVE-2026-128118
- github.com/advisories/GHSA-m9j8-jcmv-hp69
- github.com/sveltejs/kit
Merged from ENISA EUVD, FIRST EPSS, GitHub Advisory Database, OSV. Last updated 18 Nov 2026. All vulnerabilities · RSS · JSON