← Vulnerabilities

HighAdvisoryJavaScript / Node.jsSvelte

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

Affected

PackageAffected versionsFixed in
npm:@sveltejs/kit>= 3.0.0, <= 3.1.03.1.1

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.

Read on GitHub Advisory Database

On 11/16/2026, 11:59 PM, GitHub Advisory Database published "SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle" (type: Advisory). Severity is "High" (high). Related technologies: JavaScript / Node.js, Svelte. CVE: CVE-2026-128118.