Skip to main content

SvelteKit CVE-2026-128118

| EUVDEUVD-2026-125730 HIGH
Information Exposure (CWE-200)
2026-11-13 GitHub_M GHSA-m9j8-jcmv-hp69
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Load deployed SvelteKit app (3.0.0-3.1.0)
  2. Exploit
    Download public client JS bundle
  3. Execution
    Inspect bundle for inlined server-only values
  4. Impact
    Extract private env secrets

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a SvelteKit application on versions 3.0.0 through 3.1.0 that imports a server-only module - $app/server, $env/static/private, a *.server.js file, or anything in a server directory - through src/params.js (the parameter-matcher file), which runs in the browser when router.resolution is 'client'. Only under that specific import chain do statically-replaced private environment values or other server secrets leak into the client bundle. Limiting factors: this is not a default configuration - it depends on the developer having routed server-only imports through params.js and on real secrets being referenced that way; it is confined to the 3.0.0-3.1.0 range and does not require authentication or user interaction once present, but no attacker action can induce it in an app that does not use this pattern.

Impact

The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, 7.5) rates this a high-severity network, unauthenticated confidentiality breach, and the vuln.today decision label is 'this_week' (not act_now/emergency). However, these signals must be read against the actual mechanism: this is a build-time guard failure, not a directly attacker-triggered flaw. Exposure only occurs when a developer's SvelteKit app (3.0.0-3.1.0) actually imports server-only modules through src/params.js, so the network/unauthenticated characterization describes the victim-side effect (secrets shipped in public client JS) rather than an attacker-controlled trigger - the real precondition lives in the affected app's own code, which NVD-style PR:N/AC:L does not capture. No EPSS score, KEV listing, or SSVC automatable/technical-impact breakdown was supplied. Exploitation status: no public exploit identified at time of analysis (references are the advisory, fix commit, and release only - no PoC or exploit reference). Net: a genuine secret-exposure risk worth prompt patching for affected apps, but conditional on a non-default coding pattern rather than a broadly weaponizable remote bug; treat as elevated-but-targeted, not an emergency, consistent with the 'this_week' label.

Exploit ScenarioDerived

A SvelteKit app running 3.0.0-3.1.0 whose src/params.js parameter matcher imports a server-only module (e.g. $env/static/private or a *.server.js file) ships those statically-replaced private environment values into the client bundle. An attacker simply loads the public site and reads the served JavaScript to recover the inlined secrets - no authentication or special tooling is required. No public exploit code was identified in the supplied data.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

SvelteKit 3.0.0 through 3.1.0 can leak server-side secrets into the browser bundle because its build-time server-only import guard failed to treat src/params.js as a client entry point, even though parameter matchers execute in the browser when router.resolution is 'client'. If an application routes imports of $app/server, $env/static/private, *.server.js files or server-directory modules through src/params.js, those modules enter the client bundle and statically replaced private environment values or other secrets become readable by any visitor; the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, 7.5) rates this a high-severity, unauthenticated confidentiality breach. Exploitation requires the application to actually use that specific import pattern - no attacker action can induce the leak in an app that does not - and no public exploit has been identified at time of analysis. The vulnerability is fixed in 3.1.1 and carries a 'this_week' priority decision rather than an emergency response.

RemediationAI

Upgrade @sveltejs/kit to 3.1.1, which is the exact fixed release per https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1 and incorporates commit ae07803806f75b8b5662ae4ab92934ca1356fd84; the 3.1.1 guard additionally registers src/params.js as a client entry point, strips query strings before matching server-only module ids, and fails closed when a server-only module reaches the client bundle outside a known entry point, so the same configuration will from then on surface a build error instead of shipping the secret. Because the leaked values are statically inlined into already-built client assets, upgrading stops future builds from exposing them but does not invalidate what has already been deployed or cached, so treat any secret referenced through a params.js import chain as compromised and rotate it. Organizations that cannot upgrade immediately can apply the vendor-documented structural workaround: break the import chain by removing server-only imports from src/params.js, moving that code into a server-only file such as +page.server.js or +layout.server.js and passing the needed data through a server load function, or moving non-secret logic out of the server-only module; the trade-off is that parameter matchers must then work without access to private environment values or server-directory modules. Auditing the built client bundle for $env/static/private values or other secrets provides confirmation of whether a given deployment was affected.

Affected VersionsENISA

kit 3.0.0, < 3.1.1

Affected Packages

npm @sveltejs/kit fix: 3.1.1
euvd kit fix: 3.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SvelteKit enforces a build-time boundary that keeps server-only modules - $app/server, $app/env/private, $env/static/private, files named *.server.js and anything inside a server directory - out of the browser bundle, because those values are statically replaced at build time and would otherwise be inlined as plaintext into shipped JavaScript. The guard is implemented as a Vite plugin (packages/kit/src/exports/vite/plugins/guard.js) that starts from a set of client entry points (+page.svelte, universal +page.js, the service worker) and walks the import chain back to any server-only module. src/params.js, which holds route parameter matchers, was omitted from that entry-point set, even though parameter matchers run in the browser when router.resolution is set to 'client'. Server-only modules imported through params.js were therefore never attributed to client code and slipped past the guard into the client bundle. The commit ae07803806f75b8b5662ae4ab92934ca1356fd84 fixes this by registering manifest_data.params as an entry point, stripping query strings (query_pattern) before matching so a / inside a query string cannot defeat server_only_module_pattern, adding a server_only_module_with_query_pattern, and making the check fail closed when a module reached the client bundle outside any known entry point. The underlying weakness maps to CWE-200 (Exposure of Sensitive Information) and, per the GitHub advisory, CWE-668 (Exposure of Resource to Wrong Sphere); the trigger is a build-time import-graph analysis gap, not a runtime memory or logic flaw.

Know when Sveltekit gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

Once an affected app bundles the secret, it is exposed in publicly served client JS with no auth or interaction (AV:N/PR:N/UI:N/C:H); no integrity or availability impact, so I:N/A:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 20:49 EUVD
CVE Published
Nov 13, 2026 - 19:31 cve.org
HIGH 7.5

DescriptionCVE.org

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.

Technical POC Analysis

Class: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor), with the advisory also tagging CWE-668 (Exposure of Resource to Wrong Sphere).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A high-severity vulnerability in SvelteKit versions 3.0.0 through 3.1.0 can expose server-side secrets-such as private environment variables and server-only modules-to any unauthenticated visitor through the client-side JavaScript bundle. This affects applications that import server-only resources via src/params.js when using client-side router resolution, potentially leaking credentials and sensitive configuration. Leadership should prioritize remediation because exposed secrets could enable further compromise, data breaches, or unauthorized access to backend systems.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis (fix is in 3.1.1; upgrade to that version for remediation). Interim mitigations: remove or refactor any imports in src/params.js that reference $app/server, $env/static/private, *.server.js, or server-directory modules; avoid using router.resolution set to 'client' until upgraded; rotate any secrets that may have been exposed; and monitor for anomalous access using leaked credentials.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
popular JS web framework, but only specific 3.0.0-3.1.0 builds affected
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy