CVE-2026-128118
JSON

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 packageVersionsReported by
sveltejs kit>= 3.0.0, < 3.1.1CVE List
@sveltejs/kit (npm)from 3.0.0 before 3.1.1GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-200CWE-668

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

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

SourceRecordLicence
CVE ListCVE-2026-128118 changed 2026-11-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-m9j8-jcmv-hp69 changed 2026-11-16CC-BY-4.0
NVDCVE-2026-128118 changed 2026-11-18Public domain