Skip to content
Threat Brief

← All advisories

CVE-2026-128118

High 7.5No known exploitationFix available

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

Vendor advisory: GHSA-m9j8-jcmv-hp69

Record last updated

CVSS score

7.5

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.3%

Higher than 21% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-200, CWE-668

Patching and mitigation

Patch status
Fix available (source: GitHub Advisory Database)
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
npm@sveltejs/kitfrom 3.0.0 up to and including 3.1.03.1.1GitHub Advisory Database
sveltejskit>= 3.0.0, < 3.1.1Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by GitHub_M

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by GitHub Advisory Database

    Source: GitHub Advisory Database (opens in a new tab)

Vendor guidance and references