Description
Vite is a frontend tooling framework for JavaScript. From 7.1.0 to before 7.3.2 and 8.0.5, on the Vite dev server, files that should be blocked by server.fs.deny (e.g., .env, *.crt) can be retrieved with HTTP 200 responses when query parameters such as ?raw, ?import&raw, or ?import&url&inline are appended. This vulnerability is fixed in 7.3.2 and 8.0.5.
CVSS breakdown
CVSS 4.0
Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Confidentiality (Vulnerable System)
High
Integrity (Vulnerable System)
None
Availability (Vulnerable System)
None
Confidentiality (Subsequent System)
None
Integrity (Subsequent System)
None
Availability (Subsequent System)
None
Affected products
- vitejs / vite>= 8.0.0, < 8.0.5 – >= 8.0.0, < 8.0.5
- vitejs / vite>= 7.1.0, < 7.3.2 – >= 7.1.0, < 7.3.2
- vitejs / vite-plus< 0.1.16 – < 0.1.16
Exploits & PoCs
- nucleiVite Dev Server - Directory Traversalby ritikchaddha