CVE-2025-58751: vitejs vite · Path Traversal
Affects vitejs viteSource CVE Database V5
Not known to be exploited · public detection template (Nuclei) · CVSS 2.3 Low : upgrade to 5.4.20 when convenient.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 1.2% chance of exploitation in 30 days – higher than 68% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.4.20
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Sep 2025
Detectable: evidence found.
Weaponised: 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 26 Oct 2026.
What to do
Upgrade vitejs vite to 5.4.20.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| vitejs vite | Affected
| Fixed in
|
AI-suggested
A fix is available in vite version 5.4.20 and later. Users should upgrade to vite >=5.4.20 to remediate this vulnerability. Until then, avoid exposing the vite dev server to the network or avoid using symlinks in the public directory. Patch status is confirmed by the affectedVersions field indicating versions <5.4.20 are vulnerable.
Description
CVE-2025-58751 is a path traversal vulnerability in the vitejs vite development server affecting versions prior to 5.4.20. It allows an attacker to bypass server filesystem restrictions and access files outside the intended public directory when certain conditions are met, including exposing the dev server to the network, using the public directory feature, and having a symlink in the public directory. The vulnerability arises from improper path normalization and checking in the middleware serving public files, enabling traversal via crafted requests.
References
- github.com/vitejs/vite/security/advisories/GHSA-g4jq-h2w9-997c (opens in a new tab)
- github.com/lukeed/sirv/commit/f0113f3f8266328d804ee808f763a3c11f8997eb (opens in a new tab)
- github.com/vitejs/vite/commit/09f2b52e8d5907f26602653caf41b3a56692600d (opens in a new tab)
- github.com/vitejs/vite/commit/4f1c35bcbb5830290c694aa14b6789e07450f069 (opens in a new tab)
- github.com/vitejs/vite/commit/63e2a5d232218f3f8d852056751e609a5367aaec (opens in a new tab)
- github.com/vitejs/vite/commit/e11d24008b97d4ca731ecc1a3b95260a6d12e7e0 (opens in a new tab)