Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLoad deployed SvelteKit app (3.0.0-3.1.0)
-
ExploitDownload public client JS bundle
-
ExecutionInspect bundle for inlined server-only values
-
ImpactExtract 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
SvelteKit is a web development framework. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no
The SvelteKit framework offers developers an option to create simple REST APIs. Rated high severity (CVSS 8.8), this vul
Prototype pollution in sveltekit-superforms 2.27.3 and earlier allows unauthenticated remote attackers to inject string
SvelteKit versions 2.42.0 through 3.1.0 can be driven into an event-loop-blocking denial of service by a single unauthen
Confidentiality exposure in the npm package @sveltejs/kit 2.60.1 through 3.1.0 allows arguments submitted for one non-ex
Cross-origin JavaScript execution in SvelteKit is possible when a pathname beginning with // is interpreted as a protoco
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Rated low severity (CV
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Rated low severity (CV
EUVD-2026-125730
GHSA-m9j8-jcmv-hp69
NVD
CVE.org
EPSS
VulDB
Exploit-DB