Improper access control in Vite - CVE-2024-31207
Published: April 3, 2024 / Updated: April 8, 2026
Vite
Vite
Description
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to improper access control in the server.fs.deny file access restriction mechanism when handling requests for paths matching deny patterns with directories. A remote attacker can send a specially crafted request to disclose sensitive information.
Only applications that set a custom server.fs.deny pattern containing directories and explicitly expose the Vite dev server to the network are vulnerable.