Skip to content
Fencer Vulns
medium 5.9

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

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-parent
    not 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

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-284 Improper Access Control

References

Sources

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.