server.fs.deny bypassed when using ?import&raw in vite
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.4.6, 5.3.6, 5.2.14, 4.5.5, 3.2.11, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: poc
- Automatable: no
- Technical impact: partial
Summary
Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- vitejs vite
From 5.4.0 · fixed in 5.4.6; From 5.3.0 · fixed in 5.3.6; From 5.0.0 · fixed in 5.2.14; From 4.0.0 · fixed in 4.5.5; fixed in 3.2.11
- vitenpm
From 5.4.0 · fixed in 5.4.6
- vitenpm
From 5.3.0 · fixed in 5.3.6
- vitenpm
From 5.2.0 · fixed in 5.2.14
- vitenpm
From 4.0.0 · fixed in 4.5.4
- vitenpm
fixed in 3.2.11
- vitenpm
From 5.0.0 · fixed in 5.1.8