CVE-2024-31207 json
Vite's `server.fs.deny` did not deny requests for patterns with directories
published 2024-04-03 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1159 , GHSA-8jhw-289h-jh2g
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm vite 2.9.18, 3.2.10, 4.5.3, 5.0.13, 5.1.7, 5.2.6
- vitejs vite 2.9.18, 3.2.10, 4.5.3, 5.0.13, 5.1.7, 5.2.6
- velociraptor openSUSE Tumbleweed 0.7.0.4.git142.862ef23-1.1
opensuse advisories openSUSE-SU-2025:14663-1
- github.com/vitejs/vite@011bbca commit
- github.com/vitejs/vite@5a056dd commit
- github.com/vitejs/vite@89c7c64 commit
- github.com/vitejs/vite@96a7f3a commit
- github.com/vitejs/vite@ba5269c commit
- github.com/vitejs/vite@d2db33f commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-31207 updated cvss 5.9
vitejs: "server.fs.deny" configuration does not deny requests that include patterns
-
Red Hat Ansible Automation Platform 2 automation-controller Red Hat Build of Keycloak org.keycloak-keycloak-parent org.keycloak-keycloak-parent Red Hat JBoss Enterprise Application Platform 8 org.keycloak-keycloak-parent org.keycloak-keycloak-parentnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.71% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | 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 |
2.9.18 3.2.10 4.5.3 5.0.13 5.1.7 5.2.6 |
Affected products
- vitejs vite
Classification
References
-
github.com
/vitejs/vite/commit/011bbca350e447d1b499d242804ce62738c12bc0
web
-
github.com
/vitejs/vite/commit/5a056dd2fc80dbafed033062fe6aaf4717309f48
web
-
github.com
/vitejs/vite/commit/89c7c645f09d16a38f146ef4a1528f218e844d67
web
-
github.com
/vitejs/vite/commit/96a7f3a41ef2f9351c46f3ab12489bb4efa03cc9
web
-
github.com
/vitejs/vite/commit/ba5269cca81de3f5fbb0f49d58a1c55688043258
web
-
github.com
/vitejs/vite/commit/d2db33f7d4b96750b35370c70dd2c35ec3b9b649
web
-
github.com
/vitejs/vite/security/advisories/GHSA-8jhw-289h-jh2g
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-31207
advisory
-
github.com
/vitejs/vite
package
Sources
- CVE List CVE-2024-31207
- GitHub Advisory GHSA-8jhw-289h-jh2g
- NVD CVE-2024-31207
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.