Server secrets can enter the client bundle in SvelteKit
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
SvelteKit from 3.0.0 before 3.1.1 does not treat src/params.js as a client entry point, although parameter matchers can run in the browser. Server-only modules imported through src/params.js can enter the client bundle, where statically replaced private environment values or other server secrets can be exposed (CWE-200, CWE-668). An unauthenticated remote attacker can read these values from the shipped client code.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sveltejs | kit | 3.0.0 to before 3.1.1 | 3.1.1 | Patch available | CNA |
| — | @sveltejs/kit (npm) | 3.0.0 to before 3.1.1 | 3.1.1 | Patch available | GHSA-m9j8-jcmv-hp69 |
- kit Vendorsveltejs Affected 3.0.0 to before 3.1.1 Fixed in 3.1.1 Patch available CNA
- @sveltejs/kit (npm) Vendor— Affected 3.0.0 to before 3.1.1 Fixed in 3.1.1 Patch available GHSA-m9j8-jcmv-hp69
Remediation
Upgrade sveltejs kit (npm package @sveltejs/kit) to version 3.1.1, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA kit (sveltejs) Fixed in 3.1.1
- Fix · GHSA-m9j8-jcmv-hp69 @sveltejs/kit (npm) Fixed in 3.1.1 Advisory →
Timeline
- 2026-11-13 Threatist record created from CVE-2026-128118
- 2026-11-16 Alias added: GHSA-m9j8-jcmv-hp69
- 2026-11-16 Fix available: npm/@sveltejs/[email protected] · GHSA-m9j8-jcmv-hp69
- 2026-11-16 CVSS score added · GHSA-m9j8-jcmv-hp69
- 2026-11-16 Weakness changed · GHSA-m9j8-jcmv-hp69
- 2026-11-16 5 new references · GHSA-m9j8-jcmv-hp69
References
More sveltejs vulnerabilities
- TI-2023-13469 SvelteKit framework has Insufficient CSRF protection for CORS requests CVSS 3.1HIGH 8.8
- TI-2023-13464 SvelteKit has Insufficient Cross-Site Request Forgery Protection CVSS 3.1HIGH 8.8
- TI-2024-15660 Sending a GET or HEAD request with a body crashes SvelteKit CVSS 3.1HIGH 7.5
- TI-2024-30159 Potential mXSS vulnerability due to improper HTML escaping in svelte CVSS 3.1MEDIUM 6.1
- TI-2025-23466 SvelteKit allows XSS via tracked search_params CVSS 3.1MEDIUM 5.4
- TI-2025-13940 Svelte 5.46.0 - Hydratable Key Script-Breakout XSS (SSR) CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-128118 · CVE Program
- CVE-2026-128118 · NVD
- FIRST EPSS
- GHSA-m9j8-jcmv-hp69 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences