Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vite
  4. ›
  5. CVE-2022-35204

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

August 19, 2022 (updated September 23, 2024)

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

References

  • github.com/advisories/GHSA-mv48-hcvh-8jj8
  • github.com/vitejs/vite
  • github.com/vitejs/vite/commit/6851009e6725b17608113a5a63474280075cae1c
  • github.com/vitejs/vite/commit/e109d64331d9fa57753832762c3573c3532a6947
  • github.com/vitejs/vite/issues/8498
  • github.com/vitejs/vite/releases/tag/v2.9.13
  • github.com/vitejs/vite/releases/tag/v3.0.0-beta.4
  • nvd.nist.gov/vuln/detail/CVE-2022-35204

Code Behaviors & Features

Detect and mitigate CVE-2022-35204 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.9.13, all versions starting from 3.0.0-alpha.0 before 3.0.0-beta.4

Fixed versions

  • 2.9.13
  • 3.0.0-beta.4

Solution

Upgrade to versions 2.9.13, 3.0.0-beta.4 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/vite/CVE-2022-35204.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:10 +0000.