CVE-2026-128118
SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm.at.sveltejs » kitvia npm @sveltejs/kit | >= 3.0.0, < 3.1.1 | 3.1.1 |
Blast radius
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
- Webhttps://github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-128118
- Webhttps://github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84
- Packagehttps://github.com/sveltejs/kit
- Webhttps://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1
