Read the docs

Server secrets can enter the client bundle in SvelteKit

Priority LOW 33CWE-200Published · Updated

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

EPSS 0.00282 21st percentileScored 2026-11-16
Fix Fixed kit (sveltejs): 3.1.1@sveltejs/kit (npm): 3.1.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
sveltejskit3.0.0 to before 3.1.13.1.1Patch availableCNA
—@sveltejs/kit (npm)3.0.0 to before 3.1.13.1.1Patch availableGHSA-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

  1. 2026-11-13 Threatist record created from CVE-2026-128118
  2. 2026-11-16 Alias added: GHSA-m9j8-jcmv-hp69
  3. 2026-11-16 Fix available: npm/@sveltejs/[email protected] · GHSA-m9j8-jcmv-hp69
  4. 2026-11-16 CVSS score added · GHSA-m9j8-jcmv-hp69
  5. 2026-11-16 Weakness changed · GHSA-m9j8-jcmv-hp69
  6. 2026-11-16 5 new references · GHSA-m9j8-jcmv-hp69

References

  • 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
See all 58 →

Sources