7.5high
SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m9j8-jcmv-hp69
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sveltejs kit | >= 3.0.0, < 3.1.1 | CVE List |
| @sveltejs/kit (npm) | from 3.0.0 before 3.1.1 | GitHub Advisory Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-128118 changed 2026-11-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m9j8-jcmv-hp69 changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2026-128118 changed 2026-11-18 | Public domain |