CVE-2025-31125: medium-severity vulnerability in vitejs vite
Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
Patch now. It under exploitation confirmed by CISA and has a working public exploit.
Official vendor statements in CSAF/VEX format: whether their product is affected, already fixed, or ruled out — and why. These are the vendor's assertions, not Vexday's judgment.
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Vite's file access restrictions can be bypassed using special query parameters (?inline&import or ?raw?import), allowing attackers to read files that should be protected. This only affects development servers intentionally exposed to the network.
A path traversal vulnerability in Vite's dev server bypasses server.fs.deny restrictions when ?inline&import or ?raw?import query parameters are appended to file requests. The attack requires network access to the exposed dev server and can result in unauthorized disclosure of sensitive files outside the intended accessible directory.
The full analysis of this CVE is available in Portuguese →
In the same product, most dangerous first.