Home / Vitejs / Vite / CVE-2022-35204
CVE-2022-35204: is it exploited, and which versions of Vitejs Vite are affected and fixed?
CVE-2022-35204 is a path traversal (reading or writing files outside the intended folder) vulnerability in Vitejs Vite. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: vite before 2.9.13 and vite from 3.0.0-alpha.0 before 3.0.0-beta.4 (GitHub advisory GHSA-mv48-hcvh-8jj8). Fixed in 2.9.13 and 3.0.0-beta.4 (GitHub advisory GHSA-mv48-hcvh-8jj8). Severity: Medium (4.3, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:46 UTC.
What is CVE-2022-35204?
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.
From the CVE record by mitre, last updated August 3, 2024, 09:29 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | vite | < 2.9.13 | 2.9.13 | GHSA-mv48-hcvh-8jj8 |
| npm | vite | >= 3.0.0-alpha.0, < 3.0.0-beta.4 | 3.0.0-beta.4 | GHSA-mv48-hcvh-8jj8 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 23, 2024. Summary: Vite before v2.9.13 vulnerable to directory traversal via crafted URL to victim's service.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| vitejs | vite | before 2.9.13 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:51 UTC.
How severe is CVE-2022-35204?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-35204 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.33% probability of exploitation activity in the next 30 days, percentile 72.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- https://github.com/vitejs/vite/issues/8498 x_refsource_MISC
- https://github.com/vitejs/vite/releases/tag/v2.9.13 x_refsource_MISC
- https://github.com/vitejs/vite/releases/tag/v3.0.0-beta.4 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 4, 2022
- Published
- August 18, 2022, 18:15 UTC
- CVE record updated
- August 3, 2024, 09:29 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 04:51 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:46 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Vite?
- Mar 31, 2025CVE-2025-31125 vitejs vite: information disclosure exploited
- Nov 30, 2026CVE-2026-140098 vitejs vite: information disclosure
- Nov 30, 2026CVE-2026-140097 vitejs vite: improper output encoding
- Oct 28, 2026CVE-2026-118662 vitejs vite: incorrect Behavior Order: Validate Before Canonicalize
- Oct 20, 2026CVE-2026-112947 vitejs vite: path traversal (reading or writing files outside the intended folder)
- Oct 20, 2026CVE-2026-112946 vitejs vite: path traversal (reading or writing files outside the intended folder)
- Oct 20, 2026CVE-2026-112945 vitejs vite: cross-site scripting (XSS)
- Oct 20, 2026CVE-2026-112944 vitejs launch-editor: argument injection
Questions about CVE-2022-35204
Is CVE-2022-35204 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 1.33% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Vitejs Vite are affected by CVE-2022-35204?
vite before 2.9.13 and vite from 3.0.0-alpha.0 before 3.0.0-beta.4, per the GitHub advisory GHSA-mv48-hcvh-8jj8. The tables above give every range the sources list.
Which version fixes CVE-2022-35204?
2.9.13 and 3.0.0-beta.4, per the GitHub advisory GHSA-mv48-hcvh-8jj8. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-35204?
Medium (4.3, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2022-35204?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.