CVE-2025-31125

Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query

State
Published
Severity
5.3 Medium
Published
Mar 31, 2025
Updated
Jan 23, 2026
Reserved
Mar 26, 2025

Read the record on cve.org

Description

Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:NGitHub_M

Weaknesses

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

Affected Products

ProductVersions
vitevitejs
  • >= 6.2.0, < 6.2.4Affected
  • >= 6.1.0, < 6.1.3Affected
  • >= 6.0.0, < 6.0.13Affected
  • >= 5.0.0, < 5.4.16Affected
  • < 4.5.11Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.