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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-11-13T19:31:04.678Z
- Modified: 2026-11-18T05:19:03.157Z
- Also known as: GHSA-m9j8-jcmv-hp69
- Weaknesses: CWE-200, CWE-668
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- sveltejs kit: >= 3.0.0, < 3.1.1
- @sveltejs/kit (npm): from 3.0.0 before 3.1.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-128118](https://www.cve.org/CVERecord?id=CVE-2026-128118), CVE Terms of Use, modified 2026-11-18
- GitHub Advisory Database: [GHSA-m9j8-jcmv-hp69](https://github.com/advisories/GHSA-m9j8-jcmv-hp69), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-128118](https://nvd.nist.gov/vuln/detail/CVE-2026-128118), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-128118 · Whole record: https://cve.day/CVE-2026-128118.json · Rebuilt by cve.day 2026-11-25T22:59:50.780Z
