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

CVE-2023-34092: Use of Incorrectly-Resolved Name or Reference

June 1, 2023 (updated June 9, 2023)

Vite provides frontend tooling. Prior to versions 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, and 4.3.9, Vite Server Options (server.fs.deny) can be bypassed using double forward-slash (//) allows any unauthenticated user to read file from the Vite root-path of the application including the default fs.deny settings (['.env', '.env.*', '*.{crt,pem}']). Only users explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected, and only files in the immediate Vite project root folder could be exposed. This issue is fixed in vite@4.3.9, vite@4.2.3, vite@4.1.5, vite@4.0.5, vite@3.2.7, and vite@2.9.16.

References

  • github.com/vitejs/vite/commit/813ddd6155c3d54801e264ba832d8347f6f66b32
  • github.com/vitejs/vite/pull/13348
  • github.com/vitejs/vite/security/advisories/GHSA-353f-5xf4-qw67
  • nvd.nist.gov/vuln/detail/CVE-2023-34092

Code Behaviors & Features

Detect and mitigate CVE-2023-34092 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

Version 2.9.15, all versions starting from 3.0.2 before 3.2.7, all versions starting from 4.0.0 before 4.0.5, all versions starting from 4.1.0 before 4.1.5, all versions starting from 4.2.0 before 4.2.3, all versions starting from 4.3.0 before 4.3.9

Fixed versions

  • 2.9.16
  • 3.2.7
  • 4.0.5
  • 4.1.5
  • 4.2.3
  • 4.3.9

Solution

Upgrade to versions 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, 4.3.9 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-706: Use of Incorrectly-Resolved Name or Reference

Source file

npm/vite/CVE-2023-34092.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:09 +0000.