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

CVE-2025-30208: Vite bypasses server.fs.deny when using ?raw??

March 25, 2025

The contents of arbitrary files can be returned to the browser.

References

  • github.com/advisories/GHSA-x574-m823-4x7w
  • github.com/vitejs/vite
  • github.com/vitejs/vite/commit/315695e9d97cc6cfa7e6d9e0229fb50cdae3d9f4
  • github.com/vitejs/vite/commit/80381c38d6f068b12e6e928cd3c616bd1d64803c
  • github.com/vitejs/vite/commit/807d7f06d33ab49c48a2a3501da3eea1906c0d41
  • github.com/vitejs/vite/commit/92ca12dc79118bf66f2b32ff81ed09e0d0bd07ca
  • github.com/vitejs/vite/commit/f234b5744d8b74c95535a7b82cc88ed2144263c1
  • github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w
  • nvd.nist.gov/vuln/detail/CVE-2025-30208

Code Behaviors & Features

Detect and mitigate CVE-2025-30208 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.10, all versions starting from 5.0.0 before 5.4.15, all versions starting from 6.0.0 before 6.0.12, all versions starting from 6.1.0 before 6.1.2, all versions starting from 6.2.0 before 6.2.3

Fixed versions

  • 6.2.3
  • 6.1.2
  • 6.0.12
  • 5.4.15
  • 4.5.10

Solution

Upgrade to versions 4.5.10, 5.4.15, 6.0.12, 6.1.2, 6.2.3 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/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/CVE-2025-30208.yml

Spotted a mistake? Edit the file on GitLab.

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

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