PT-2025-13812 · Vite · Vite
Published
2025-03-31
·
Updated
2026-02-18
·
CVE-2025-31125
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Vite versions 4.5.11, 5.4.16, 6.0.13, 6.1.3, and 6.2.4
Description
Vite, a frontend tooling framework for JavaScript, has an issue where it exposes the content of non-allowed files through the use of the
?inline&import or ?raw?import query parameters. This occurs only when the Vite development server is explicitly exposed to the network, either through the --host command-line option or the server.host configuration setting. The vulnerability allows attackers to potentially read arbitrary files, with the content being base64 encoded. The issue does not require the use of the /@fs/ path for files within the project root. Proof-of-concept exploits involve crafting URLs with the specific query parameters to request file content.Recommendations
Update to Vite version 6.2.4.
Update to Vite version 6.1.3.
Update to Vite version 6.0.13.
Update to Vite version 5.4.16.
Update to Vite version 4.5.11.
Exploit
Fix
Improper Access Control
Information Disclosure
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Vite