1. Home
  2. Vulnerabilities
  3. CVE-2025-31125

CVE-2025-31125

Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using…

Published 31 Mar 2025 · modified 17 Jun 2026 · Sources: NVD, CISA KEV, EPSS (FIRST)

Critical 91/100

Summary

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.

Affected products and versions

Vitejs (5 line(s))
Vitejs
ProductVersionsFixed inSource
Vite before 4.5.11 (excluded) — NVD
Vite from 5.0.0 (included) to 5.4.16 (excluded) — NVD
Vite from 6.0.0 (included) to 6.0.13 (excluded) — NVD
Vite from 6.1.0 (included) to 6.1.3 (excluded) — NVD
Vite from 6.2.0 (included) to 6.2.4 (excluded) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

Vite Development Server - Path Traversalofficial source

Nuclei template

nuclei -u https://VOTRE-HOTE -t http/cves/2025/CVE-2025-31125.yaml

Source : Open

Timeline

  1. — CVE published (cve)
  2. — Added to KEV catalogue (cisa-kev)
  3. — Nuclei detection template (nuclei) date first seen

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1, NVD)
Weakness
NVD-CWE-noinfo · Non classé

How this data is obtained and calculated