Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vite
  4. ›
  5. GHSA-8jhw-289h-jh2g

GHSA-8jhw-289h-jh2g: Vite's `server.fs.deny` did not deny requests for patterns with directories.

April 3, 2024

Vite dev server option server.fs.deny did not deny requests for patterns with directories. An example of such a pattern is /foo/**/*.

References

  • github.com/advisories/GHSA-8jhw-289h-jh2g
  • github.com/vitejs/vite
  • github.com/vitejs/vite/commit/011bbca350e447d1b499d242804ce62738c12bc0
  • github.com/vitejs/vite/commit/5a056dd2fc80dbafed033062fe6aaf4717309f48
  • github.com/vitejs/vite/commit/89c7c645f09d16a38f146ef4a1528f218e844d67
  • github.com/vitejs/vite/commit/96a7f3a41ef2f9351c46f3ab12489bb4efa03cc9
  • github.com/vitejs/vite/commit/ba5269cca81de3f5fbb0f49d58a1c55688043258
  • github.com/vitejs/vite/commit/d2db33f7d4b96750b35370c70dd2c35ec3b9b649
  • github.com/vitejs/vite/security/advisories/GHSA-8jhw-289h-jh2g

Code Behaviors & Features

Detect and mitigate GHSA-8jhw-289h-jh2g 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 starting from 2.7.0 before 2.9.18, all versions starting from 3.0.0 before 3.2.10, all versions starting from 4.0.0 before 4.5.3, all versions starting from 5.0.0 before 5.0.13, all versions starting from 5.1.0 before 5.1.7, all versions starting from 5.2.0 before 5.2.6

Fixed versions

  • 2.9.18
  • 3.2.10
  • 4.5.3
  • 5.0.13
  • 5.1.7
  • 5.2.6

Solution

Upgrade to versions 2.9.18, 3.2.10, 4.5.3, 5.0.13, 5.1.7, 5.2.6 or above.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-284: Improper Access Control

Source file

npm/vite/GHSA-8jhw-289h-jh2g.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:58 +0000.