CVE-2022-35204 is a high-severity (CVSS 8.6) Path Traversal vulnerability in vite. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for vite — see the affected versions and patch details below.
Vite before v2.9.13 vulnerable to directory traversal via crafted URL to victim's service
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
vitenpmDescription
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | vite | all versions | 2.9.13npm install vite@2.9.13 |
| 📦npm | vite | ≥ 3.0.0-alpha.0&&< 3.0.0-beta.4 | 3.0.0-beta.4npm install vite@3.0.0-beta.4 |
Affected Products
vitevitejsResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for vite, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update vite to 2.9.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-35204 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is CVE-2022-35204 in your dependencies?
Find it across npm, including transitive dependencies.