Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vite
  4. ›
  5. GHSA-4w7w-66w2-5vf9

GHSA-4w7w-66w2-5vf9: Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling

April 6, 2026

Any files ending with .map even out side the project can be returned to the browser.

References

  • github.com/advisories/GHSA-4w7w-66w2-5vf9
  • github.com/vitejs/vite
  • github.com/vitejs/vite/commit/79f002f2286c03c88c7b74c511c7f9fc6dc46694
  • github.com/vitejs/vite/pull/22161
  • github.com/vitejs/vite/releases/tag/v6.4.2
  • github.com/vitejs/vite/releases/tag/v7.3.2
  • github.com/vitejs/vite/releases/tag/v8.0.5
  • github.com/vitejs/vite/security/advisories/GHSA-4w7w-66w2-5vf9

Code Behaviors & Features

Detect and mitigate GHSA-4w7w-66w2-5vf9 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 6.4.2, all versions starting from 7.0.0 before 7.3.2, all versions starting from 8.0.0 before 8.0.5

Fixed versions

  • 8.0.5
  • 7.3.2
  • 6.4.2

Solution

Upgrade to versions 6.4.2, 7.3.2, 8.0.5 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/vite/GHSA-4w7w-66w2-5vf9.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 07 Apr 2026 12:19:24 +0000.