# GHSA-M9J8-JCMV-HP69: SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-11-16
- Modified: 2026-11-16

## Tracked as

- [CVE-2026-128118](https://cve.now/CVE-2026-128118.md): kit server secret disclosure in build-time import guard

## Affected versions

- @sveltejs/kit (npm): from 3.0.0, fixed in 3.1.1

## 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`.

## References

- https://github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69
- https://nvd.nist.gov/vuln/detail/CVE-2026-128118
- https://github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84
- https://github.com/sveltejs/kit
- https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1

Page: https://cve.now/GHSA-M9J8-JCMV-HP69

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
