---
title: "GHSA-m9j8-jcmv-hp69: SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle"
description: "High severity. SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle."
url: https://inlinr.com/advisories/GHSA-m9j8-jcmv-hp69
lang: en
---

[Packages](https://inlinr.com/packages) / [@sveltejs/kit](https://inlinr.com/packages/@sveltejs/kit) / [Security](https://inlinr.com/packages/@sveltejs/kit/security)

High Vulnerability GHSA-m9j8-jcmv-hp69 CVE-2026-128118 Published 16 Nov 2026

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

Your version 

Affected releases · [@sveltejs/kit](https://inlinr.com/packages/@sveltejs/kit)

- 3.x 3.0.0 – 3.1.0 Fixed in 3.1.1

On 3.x, the newest line:

```
npm install @sveltejs/kit@3.1.1
```

Every release on a timeline

1. Not affected

0.0.8 – 2.70.4  
387 releases
2. Affected

3.0.0 – 3.1.0  
3 releases
3. Fixed

3.1.1 – 3.4.0  
6 releases

396 stable releases of @sveltejs/kit, oldest to newest.

## What happens

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

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: high
- **Integrity**: none
- **Availability**: none

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:H/​I:N/​A:N

## References

- [Reference](https://github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69 "https://github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69")  
github.com/sveltejs/kit/security/advisories/GHS…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-128118 "https://nvd.nist.gov/vuln/detail/CVE-2026-128118")  
nvd.nist.gov/vuln/detail/CVE-2026-128118
- [Fix commit](https://github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84 "https://github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84")  
ae07803
- [Package](https://github.com/sveltejs/kit "https://github.com/sveltejs/kit")  
github.com/sveltejs/kit
- [Reference](https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1 "https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1")  
github.com/sveltejs/kit/releases/tag/@sveltejs/…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
