CVE-2024-45811: Vite's `server.fs.deny` is bypassed when using `?import&raw`
Affects viteSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 5.4.6 when convenient.
Data as of 13 Nov 2026, 21:02 UTC
- EPSS
- 1.1% chance of exploitation in 30 days – higher than 66% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.4.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade vite to 5.4.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewvitepkg:brew/viteOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for this vulnerability. Users should upgrade Vite to version 5.4.6 or later to remediate this issue. Until patched, avoid exposing Vite development servers to untrusted networks.
Description
Vite versions from 2.5.1 up to but not including 5.4.6 contain a vulnerability where the server's file system access restrictions can be bypassed using the '?import&raw' query parameters. This allows an attacker to retrieve the contents of arbitrary files outside the intended serving allow list. The vulnerability has a medium severity with a CVSS score of 5.3.
References
- github.com/vitejs/vite/security/advisories/GHSA-9cwx-2883-4wfx (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-45811 (opens in a new tab)
- github.com/vitejs/vite/commit/4573a6fd6f1b097fb7296a3e135e0646b996b249 (opens in a new tab)
- github.com/vitejs/vite/commit/6820bb3b9a54334f3268fc5ee1e967d2e1c0db34 (opens in a new tab)
- github.com/vitejs/vite/commit/8339d7408668686bae56eaccbfdc7b87612904bd (opens in a new tab)
- github.com/vitejs/vite/commit/a6da45082b6e73ddfdcdcc06bb5414f976a388d6 (opens in a new tab)
- github.com/vitejs/vite/commit/b901438f99e667f76662840826eec91c8ab3b3e7 (opens in a new tab)
- github.com/vitejs/vite (opens in a new tab)