Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

SvelteKit Client Bundle Secret Exposure (CVE-2026-128118)

CVE-2026-128118 is a SvelteKit build-time information exposure flaw.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-128118
Vendor
Svelte
Affected Product
SvelteKit (@sveltejs/kit)
Exploitation
Not confirmed
Published
2026-10-29

In affected projects, a server-only import through src/params.js could enter a client bundle and potentially expose server secrets.The SvelteKit advisory rates the flaw High. The reported consequence is possible disclosure of statically replaced private environment values or other server secrets, rather than code execution.

What it allows

How Does CVE-2026-128118 Reach a Client Bundle?

SvelteKit normally prevents server-only modules from entering browser code. The NVD record says the build-time guard missed src/params.js as a client entry point, even though parameter matchers can run in a browser.

A server-only module imported along that path could therefore reach the generated client bundle. The record says statically replaced private environment values or other server secrets could be exposed; exposure depends on the project's imports and built output.

This is a confidentiality issue, and the advisory's CVSS 3.1 vector assigns high confidentiality impact. It assigns no integrity or availability impact. For prioritization, see Brandefense's Vulnerability Intelligence platform product page.

What Is Known About Exploitation?

CVE-2026-128118 was absent from CISA's KEV catalog version 2026.11.13, checked November 16. That dated catalog fact does not determine whether an individual deployment exposed secrets. Treat real-world exploitation status as unknown.

Who is affected

Version Check

@sveltejs/kit
Release LineAffected RangeFixed In
3.x3.0.0 to before 3.1.13.1.1
Release ranges source

For distribution packages and custom builds, check the supplier’s advisory.

The version interval identifies affected package releases. Potential secret disclosure also requires a server-only import through src/params.js and a built client bundle containing a sensitive value.

Which SvelteKit Projects Are Affected by CVE-2026-128118?

The SvelteKit advisory lists @sveltejs/kit versions 3.0.0 through 3.1.0, inclusive, as affected. Version 3.1.1 is patched. The potential disclosure path requires server-only imports through src/params.js.

Check the resolved SvelteKit package version in the project lockfile and the version used to build each deployed artifact. Then review imports through the parameter matcher module and inspect the generated client assets for sensitive values using an approved internal process.

Upgrade affected projects to 3.1.1 or a later supported release, then rebuild and redeploy client assets. Verify that the rebuilt artifact uses the fixed package and that sensitive values are absent. If a secret was present in a published bundle, follow your incident process to rotate it and assess access.

The Vulnerability Management 101 guide provides a general verification workflow. The vulnerability intelligence glossary explains how evidence informs patch priority.

Timeline

  1. 2026-10-29

    The SvelteKit advisory was published, and the project released @sveltejs/kit 3.1.1 with the server-only import fix.

  2. 2026-11-13

    NVD published its CVE record describing the client-entry-point guard failure.

  3. 2026-11-16

    The GitHub advisory was updated. Brandefense reviewed the advisory and the CISA KEV catalog snapshot.

What to do

  1. Inventory builds and imports

    Identify projects built with @sveltejs/kit 3.0.0 through 3.1.0. Review server-only imports through src/params.js and the client assets produced by those builds.

  2. Upgrade and rebuild

    Upgrade @sveltejs/kit to 3.1.1 or a later supported release. Rebuild and redeploy affected client assets rather than relying on a package update alone.

  3. Verify the running artifact

    Confirm the deployed build used @sveltejs/kit 3.1.1 or later. Check that server-only imports are rejected from browser code and sensitive values are absent from distributed assets.

  4. Respond to confirmed exposure

    If a secret was present in a published client bundle, rotate it and assess access through your incident process. Preserve findings without placing sensitive values in public tickets.

What Brandefense can do

Frequently Asked Questions

Which SvelteKit versions does CVE-2026-128118 affect?

The SvelteKit advisory lists @sveltejs/kit 3.0.0 through 3.1.0, inclusive. Version 3.1.1 contains the fix.

Does every project on an affected version leak secrets?

The reported path requires a server-only import through src/params.js. Inspect the project's imports and generated client assets to determine whether sensitive values were included.

Is CVE-2026-128118 known to be exploited?

Real-world exploitation status is unknown. The CVE was absent from CISA KEV catalog version 2026.11.13; this dated catalog fact does not establish exploitation.

What should teams verify after upgrading?

Confirm the deployed build used @sveltejs/kit 3.1.1 or later. Reinspect client assets for sensitive values and rotate any secret found in a published bundle.

Sources

  1. SvelteKit server-only module import guard advisorySvelteKit
  2. @sveltejs/kit 3.1.1 releaseSvelteKit
  3. NVD record for CVE-2026-128118NIST National Vulnerability Database
  4. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →