# CVE-2022-35204: Vite before v2.9.13 vulnerable to directory traversal via crafted URL to victim's service

- Severity: Medium 4.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/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): 1.33%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-18T18:15:21.000Z
- Modified: 2026-06-17T04:51:33.997Z
- Also known as: GHSA-mv48-hcvh-8jj8
- Weaknesses: CWE-22
- Assigned by: mitre

## Description

Vitejs Vite before v2.9.13 was discovered to allow attackers to perform a directory traversal via a crafted URL to the victim's service.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- vite (npm): before 2.9.13; from 3.0.0-alpha.0 before 3.0.0-beta.4
- vitejs vite: before 2.9.13

## Every score

- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`

## References

- <https://github.com/vitejs/vite/issues/8498> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/vitejs/vite/releases/tag/v2.9.13> (release-notes, third-party-advisory, web)
- <https://github.com/vitejs/vite/releases/tag/v3.0.0-beta.4> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-35204> (advisory)
- <https://github.com/vitejs/vite/commit/6851009e6725b17608113a5a63474280075cae1c> (web)
- <https://github.com/vitejs/vite/commit/e109d64331d9fa57753832762c3573c3532a6947> (web)
- <https://github.com/vitejs/vite> (package)

## Sources

- CVE List: [CVE-2022-35204](https://www.cve.org/CVERecord?id=CVE-2022-35204), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-mv48-hcvh-8jj8](https://github.com/advisories/GHSA-mv48-hcvh-8jj8), CC-BY-4.0, modified 2024-09-23
- NVD: [CVE-2022-35204](https://nvd.nist.gov/vuln/detail/CVE-2022-35204), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-35204 · Whole record: https://cve.day/CVE-2022-35204.json · Rebuilt by cve.day 2026-11-25T22:58:14.294Z
