CVE-2026-128118
High 7.5No known exploitationFix availableSvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle
Vendor advisory: GHSA-m9j8-jcmv-hp69
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 21% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. From version 3.0.0 until 3.1.1, the build-time server-only module guard did not treat src/params.js as a client entry point even though parameter matchers can run in the browser. Server-only modules imported through src/params.js could consequently enter the client bundle, where statically replaced private environment values or other server secrets could be exposed. This issue is fixed in 3.1.1.
Weakness: CWE-200, CWE-668
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| npm | @sveltejs/kit | from 3.0.0 up to and including 3.1.0 | 3.1.1 | GitHub Advisory Database |
| sveltejs | kit | >= 3.0.0, < 3.1.1 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-m9j8-jcmv-hp69 (opens in a new tab)github-advisory
- https://github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84 (opens in a new tab)x_refsource_misc
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1 (opens in a new tab)x_refsource_misc
- https://github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69 (opens in a new tab)x_refsource_confirm