Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114063 Overview
CVE-2026-114063 is a path traversal vulnerability [CWE-22] in SvelteKit (@sveltejs/kit) versions 2.10.0 through versions before 3.0.0. The flaw affects the Vite preview server when running on Windows. Unauthenticated attackers with network access to the preview server can send crafted requests that escape the prerendered output directory. Successful exploitation exposes source code, configuration files, and credentials readable by the server process.
Critical Impact
Remote attackers can read arbitrary files accessible to the preview server process without authentication, enabling disclosure of secrets, credentials, and application source code.
Affected Products
- SvelteKit (@sveltejs/kit) 2.10.0 and later
- SvelteKit (@sveltejs/kit) versions before 3.0.0
- Deployments running the Vite preview server on Windows hosts
Discovery Timeline
- 2026-10-21 - CVE-2026-114063 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114063
Vulnerability Analysis
The vulnerability resides in the Vite preview server shipped with SvelteKit. The preview server is intended to serve the prerendered output of a SvelteKit build for local verification. On Windows, request path handling fails to normalize certain path separators and traversal sequences before resolving files on disk. An attacker can request paths containing traversal segments and reach files outside the intended output directory.
The exposure applies when the preview server is reachable over a network. This includes developer machines bound to non-loopback interfaces, systems exposed through tunneling tools, and preview deployments. No authentication or user interaction is required to trigger the issue.
Root Cause
The root cause is improper limitation of a pathname to a restricted directory on Windows, classified under [CWE-22]. Windows path handling allows multiple separator forms, including backslash and alternate encodings. The preview server's path resolution routine does not canonicalize these variants before performing the directory containment check. As a result, crafted paths escape the prerendered output root and resolve to arbitrary files readable by the server process.
Attack Vector
Exploitation requires only network reachability to the Vite preview server. The attacker issues HTTP GET requests whose URL path contains traversal sequences targeting files outside the preview output directory. Files returned may include SvelteKit source, environment files such as .env, build configuration, lockfiles, and any other files the Node.js process can read. See the GitHub Security Advisory and the VulnCheck Advisory on SvelteKit for additional technical context.
Detection Methods for CVE-2026-114063
Indicators of Compromise
- HTTP requests to the Vite preview server containing traversal sequences such as ..\, ..%5c, %2e%2e%5c, or encoded variants targeting parent directories.
- Preview server access logs showing successful responses for file paths outside the prerendered output directory.
- Outbound reads of sensitive files such as .env, package.json, svelte.config.js, or private key material from the server process.
Detection Strategies
- Inspect reverse proxy and web server logs for request URIs containing .., backslash sequences, or percent-encoded path separators directed at preview endpoints.
- Correlate preview server process file reads with files located outside the published output directory using endpoint telemetry.
- Flag any public exposure of ports commonly used by the Vite preview server, especially on Windows build or staging hosts.
Monitoring Recommendations
- Enable verbose HTTP access logging on any host exposing the Vite preview server and forward logs to a central analytics platform.
- Alert on sudden access to secrets files or configuration files from a Node.js process bound to the preview port.
- Monitor tunneling tools such as ngrok or Cloudflare Tunnel for sessions that expose preview or development ports.
How to Mitigate CVE-2026-114063
Immediate Actions Required
- Upgrade @sveltejs/kit to version 3.0.0 or later on all Windows build, staging, and preview hosts.
- Stop running the Vite preview server on publicly reachable interfaces until the upgrade is complete.
- Rotate any credentials, API keys, or tokens stored in files that could have been read by an exposed preview server.
Patch Information
The maintainers address the issue in SvelteKit 3.0.0. Review the GitHub Security Advisory GHSA-xgrj-p7pg-6vm3 for the full fix description and upgrade guidance. The preview server is intended for local verification only and should not be used as a production server after patching.
Workarounds
- Bind the Vite preview server to the loopback interface (127.0.0.1) only, and avoid exposing it through tunnels or reverse proxies.
- Run preview deployments on non-Windows hosts where the traversal condition does not apply, until the upgrade can be deployed.
- Place a reverse proxy in front of the preview server that normalizes request paths and rejects traversal sequences.
# Upgrade SvelteKit to a fixed release
npm install @sveltejs/kit@^3.0.0
# Verify the installed version
npm ls @sveltejs/kit
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

