Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vite
  4. ›
  5. GHSA-859w-5945-r5v3

GHSA-859w-5945-r5v3: Vite's server.fs.deny bypassed with /. for files under project root

April 30, 2025

The contents of files in the project root that are denied by a file matching pattern can be returned to the browser.

References

  • github.com/advisories/GHSA-859w-5945-r5v3
  • github.com/vitejs/vite
  • github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb
  • github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3

Code Behaviors & Features

Detect and mitigate GHSA-859w-5945-r5v3 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 4.5.14, all versions starting from 5.0.0 before 5.4.19, all versions starting from 6.0.0 before 6.1.6, all versions starting from 6.2.0 before 6.2.7, all versions starting from 6.3.0 before 6.3.4

Fixed versions

  • 6.3.4
  • 6.2.7
  • 6.1.6
  • 5.4.19
  • 4.5.14

Solution

Upgrade to versions 4.5.14, 5.4.19, 6.1.6, 6.2.7, 6.3.4 or above.

Weakness

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

Source file

npm/vite/GHSA-859w-5945-r5v3.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 00:14:45 +0000.