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

Published Nov 13, 2026
·
Updated

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 Software

1 affected component
npm/@sveltejs/kit>=3.0.0<3.1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.1.1

Event History

Nov 13, 2026
CVE Published
via MITRE·07:31 PM
Data Sourced
via MITRE·07:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are affected?

Applications using SvelteKit versions 3.0.0 through 3.1.0 are affected if src/params.js imports server-only modules and the corresponding parameter matcher can run in the browser.

2

What must an attacker do to obtain exposed values?

No authentication or user interaction is required. If private environment values or other secrets were included in the generated client bundle, they may be accessible to anyone able to retrieve and inspect that bundle.

3

What is the remediation?

Upgrade SvelteKit to version 3.1.1, which fixes the build-time guard. Review src/params.js imports and rotate any private environment values or other server secrets that may have been included in previously deployed client bundles.

4

How can I determine whether secrets may already have been exposed?

Inspect src/params.js for imports of server-only modules, then examine built and deployed client assets for statically replaced private environment values or other secret content. Exposure is possible when those imports caused secrets to enter the client bundle.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203