Technical impact
Vite’s development server inadvertently evaluates the server.fs.deny rule before stripping loader query parameters such as ?raw or ?import&raw. This logic flaw, classified as CWE‑180, CWE‑284 and CWE‑551, allows an unauthenticated attacker to bypass the deny checks by appending one of these queries to a file path that is both in server.fs.allow and matched by server.fs.deny, thereby retrieving the file’s contents. The result is unauthorized disclosure of sensitive data that should have been protected by the deny configuration, potentially exposing confidential project files or private assets.
Affected Systems
The vulnerability affects Vite version 6.4.4. Any instance of the Vite development server running this release and exposed to an external network is subject to this flaw. The issue is fixed in Vite 6.4.5 and later releases, so upgrading beyond 6.4.5 removes the problem.
Risk and Exploitability
With a CVSS score of 6.9 the vulnerability is assessed as medium severity. The EPSS score of approximately 0.3% indicates a low exploitation probability, and the issue is not listed in the CISA KEV catalog. Nonetheless, the flaw can be abused by any unauthenticated remote user who can reach the development server. The attacker just needs to supply a file path that is in both allow and deny lists and append a loader query. Successful exploitation results in read access to files that should have remained private.
Github GHSA