Improper access control in Vite - CVE-2024-45811

 

Improper access control in Vite - CVE-2024-45811

Published: September 17, 2024 / Updated: April 8, 2026


Vulnerability identifier: #VU125303
CSH Severity: Medium
CVSS v4: 5.7 [CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-45811
CWE-ID: CWE-284
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper access control in the @fs file serving mechanism when handling requests with the ?import&raw query parameter. A remote attacker can send a specially crafted request to disclose sensitive information.

User interaction is required.


Affected software

Vite

How to mitigate CVE-2024-45811

Install security update from vendor's website.

Vite - addressed in versions 3.2.11, 4.0.0, 4.5.5, 5.0.0, 5.1.8, 5.2.0, 5.2.14, 5.3.0, 5.3.6, 5.4.0, 5.4.6

External References

Related Security Bulletins