All reports
High

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

Affected versions

Affected versions
>= 3.0.0, <= 3.1.0
Fixed version
3.1.1

Exploitation

CVE-2026-128118

Probability of exploitation in the next 30 days: 0.28%

FIRST EPSS · 2026-11-20

Description

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.

Links

Credits

  • elliott-with-the-longest-name-on-github
  • Rich-Harris