Impact
SvelteKit versions up to but not including 3.0.0 contain a path traversal flaw in the vite preview server on Windows that allows an unauthenticated attacker to read files outside the prerendered output directory. An attacker can craft requests that resolve to arbitrary filesystem paths, exposing source code, configuration files, or credentials that the preview process can read.
Affected Systems
The vulnerability affects SvelteKit, the framework maintained by sveltejs:kit. All releases from 2.10.0 up to any version before 3.0.0 are vulnerable; the exact patch will appear in 3.0.0 and later releases.
Risk and Exploitability
The CVSS score of 8.7 classifies the issue as high severity while the EPSS score of less than 1% indicates a low probability of exploitation at the moment. The flaw is not listed in the CISA KEV catalog. An attacker requires network reach to the vite preview server running on Windows, and no authentication is needed to trigger the path traversal. Once reachable, a crafted HTTP request can retrieve arbitrary files within the server’s filesystem that are readable by the preview process.
OpenCVE Enrichment