Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @sveltejs/kit
  4. ›
  5. CVE-2026-128118

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

November 16, 2026

Under certain circumstances, server-only imports, which typically cannot be included in the client bundle, could make their way into it, potentially exposing secrets. This could only occur when those server-only imports were made through src/params.js.

References

  • github.com/advisories/GHSA-m9j8-jcmv-hp69
  • github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84
  • github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1
  • github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69
  • nvd.nist.gov/vuln/detail/CVE-2026-128118

Code Behaviors & Features

Detect and mitigate CVE-2026-128118 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.1.1

Fixed versions

  • 3.1.1

Solution

Upgrade to version 3.1.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-668: Exposure of Resource to Wrong Sphere

Source file

npm/@sveltejs/kit/CVE-2026-128118.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 17 Nov 2026 12:16:21 +0000.