// Security Advisory Triage
SvelteKit 3.1.0 and earlier exposes server secrets in client bundles
GitHub advisories — npm · published 2026-11-16 22:02 UTC
WHAT CHANGEDCVE-2026-128118 published 16 November 2026. SvelteKit versions before 3.1.1 fail to enforce the build-time guard that prevents server-only modules from being imported into client code. Server secrets can be statically replaced into the client bundle during build. Patched in 3.1.1.
WHY IT MATTERSEnvironment variables, API keys, database credentials and other server-side secrets intended to remain on the server are instead compiled into JavaScript sent to browsers. Anyone with access to the client bundle — which is public in a deployed web application — can extract these secrets and use them to access backend systems directly.
WHAT TO DOUpdate @sveltejs/kit to 3.1.1 or later. After updating, rebuild and redeploy all applications. Rotate any secrets that may have been exposed in previously deployed client bundles.
Model-reported confidence 95% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-m9j8-jcmv-hp69 +summary: SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle +severity: high +published_at: 2026-11-16T14:59:00Z +cve_id: CVE-2026-128118 +vulnerabilities[].package.name: @sveltejs/kit +vulnerabilities[].first_patched_version: 3.1.1
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | SvelteKit is a web framework in normal service dependency trees. Server secrets in client bundles is a real exposure. |
| signals | known vulnerability in web framework (@sveltejs/kit) · server secrets exposed in client bundle — data exfiltration risk · patched version available (3.1.1) · high severity rating · build-time guard bypass — affects deployment pipeline |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |