CVE-2024-31207: Vite's `server.fs.deny` did not deny requests for patterns with directories
Vulnerability summary
CVE-2024-31207 is a medium (CVSS 5.9) vulnerability in vitejs vite. EPSS estimates a 0.71% chance of exploitation in the next 30 days, higher than 54.9% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 04-04-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
Description
Vite (French word for "quick", pronounced /vit/, like "veet") is a frontend build tooling to improve the frontend development experience.`server.fs.deny` does not deny requests for patterns with directories. This vulnerability has been patched in version(s) 5.2.6, 5.1.7, 5.0.13, 4.5.3, 3.2.10 and 2.9.18.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.71%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.71% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-284Improper Access ControlThe product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Npm1 product
- vite≥ 2.7.0, < 2.9.18 | ≥ 3.0.0, < 3.2.10 | ≥ 4.0.0, < 4.5.3 | ≥ 5.0.0, < 5.0.13 | ≥ 5.1.0, < 5.1.7 | ≥ 5.2.0, < 5.2.6
Vitejs1 product
- vite≥ 2.7.0, ≤ 2.9.17 | ≥ 3.0.0, ≤ 3.2.8 | ≥ 4.0.0, ≤ 4.5.2 | ≥ 5.0.0, ≤ 5.0.12 | ≥ 5.1.0, ≤ 5.1.6 | ≥ 5.2.0, ≤ 5.2.5
2 vendors · 2 products
References
9 links- github.com/vitejs/vitePACKAGE