CVE-2025-31125

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*

History

24 Sep 2025, 15:45

Type Values Removed Values Added
CPE cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
First Time Vitejs
Vitejs vite
Summary
  • (es) Vite es un framework de herramientas frontend para JavaScript. Vite expone el contenido de archivos no permitidos mediante ?inline&import o ?raw?import. Solo las aplicaciones que exponen explícitamente el servidor de desarrollo de Vite a la red (mediante la opción de configuración --host o server.host) se ven afectadas. Esta vulnerabilidad está corregida en las versiones 6.2.4, 6.1.3, 6.0.13, 5.4.16 y 4.5.11.
References () https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 - () https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 - Patch
References () https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 - () https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 - Exploit, Vendor Advisory
CWE NVD-CWE-noinfo

31 Mar 2025, 18:15

Type Values Removed Values Added
References () https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 - () https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 -

31 Mar 2025, 17:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-31 17:15

Updated : 2025-09-24 15:45


NVD link : CVE-2025-31125

Mitre link : CVE-2025-31125

CVE.ORG link : CVE-2025-31125


JSON object : View

Products Affected

vitejs

  • vite
CWE
CWE-200

Exposure of Sensitive Information to an Unauthorized Actor

CWE-284

Improper Access Control

NVD-CWE-noinfo