Exposure of Sensitive Information to an Unauthorized Actor in org.webjars.npm:vite
CVE-2025-31486
- org.webjars.npm:vite
- vite
Summary
A vulnerability in Vite allows the contents of arbitrary files to be returned to the browser. By appending "?.svg" along with "?.wasm?init" or setting the "sec-fetch-dest: script" header, an attacker can bypass the "server.fs.deny" restriction. This is only possible if the file is smaller than the default "build.assetsInlineLimit" (4kB) and when the Vite development server is explicitly exposed to the network via the "--host" flag or "server.host" configuration. The vulnerability affects vite package versions through 4.5.11, 5.0.0-beta.0 through 5.4.16, 6.0.0-alpha.0 through 6.0.13, 6.1.0-beta.0 through 6.1.3, and 6.2.0-beta.0 through 6.2.4.
- HIGH
- NETWORK
- NONE
- UNCHANGED
- REQUIRED
- NONE
- HIGH
- NONE
CWE-200 - Information Exposure
An information exposure vulnerability is categorized as an information flow (IF) weakness, which can potentially allow unauthorized access to otherwise classified information in the application, such as confidential personal information (demographics, financials, health records, etc.), business secrets, and the application's internal environment.
References
Advisory Timeline
- Published