# CVE-2024-31207: Vite's `server.fs.deny` did not deny requests for patterns with directories

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Published: 2024-04-03T16:46:17.000Z
- Modified: 2026-09-10T03:50:12.501Z
- Also known as: GHSA-8jhw-289h-jh2g
- Weaknesses: CWE-200, CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vitejs 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
- vite (npm): from 2.7.0 before 2.9.18; from 3.0.0 before 3.2.10; from 4.0.0 before 4.5.3; from 5.0.0 before 5.0.13; from 5.1.0 before 5.1.7; from 5.2.0 before 5.2.6

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-8jhw-289h-jh2g> (web)
- <https://github.com/vitejs/vite/commit/011bbca350e447d1b499d242804ce62738c12bc0> (web)
- <https://github.com/vitejs/vite/commit/5a056dd2fc80dbafed033062fe6aaf4717309f48> (web)
- <https://github.com/vitejs/vite/commit/89c7c645f09d16a38f146ef4a1528f218e844d67> (web)
- <https://github.com/vitejs/vite/commit/96a7f3a41ef2f9351c46f3ab12489bb4efa03cc9> (web)
- <https://github.com/vitejs/vite/commit/ba5269cca81de3f5fbb0f49d58a1c55688043258> (web)
- <https://github.com/vitejs/vite/commit/d2db33f7d4b96750b35370c70dd2c35ec3b9b649> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31207> (advisory)
- <https://github.com/vitejs/vite> (package)

## Sources

- CVE List: [CVE-2024-31207](https://www.cve.org/CVERecord?id=CVE-2024-31207), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-8jhw-289h-jh2g](https://github.com/advisories/GHSA-8jhw-289h-jh2g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-31207](https://nvd.nist.gov/vuln/detail/CVE-2024-31207), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31207 · Whole record: https://cve.day/CVE-2024-31207.json · Rebuilt by cve.day 2026-11-25T22:58:38.765Z
