CVE-2026-128118: Server-Only Module Guard Bypass and Secret Exposure in SvelteKit
Vulnerability ID: CVE-2026-128118
CVSS Score: 7.5
Published: 2026-11-16
CVE-2026-128118 (GHSA-m9j8-jcmv-hp69) is an information disclosure vulnerability affecting the SvelteKit framework (@sveltejs/kit) from version 3.0.0 through 3.1.0. A design flaw in the build-time Vite module guard plugin (plugin_guard) failed to register src/params.js as a client entry point and implemented a fail-open validation model. Consequently, server-only modules and private environment variables imported directly or dynamically within parameter matchers were compiled into publicly accessible client-side JavaScript bundles without triggering a build error.
TL;DR
A fail-open logic flaw and missing client entrypoint registration in SvelteKit's build-time module guard allow server-only modules and private environment variables ($app/env/private) imported via src/params.js to be bundled into public client-side JavaScript assets in @sveltejs/kit…