Skip to content
skopnix

CVE-2025-31125 · NVD published 31 Mar 2025

Vite Vitejs

On CISA's KEV list 297 days after disclosure; 6 public exploits.

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.

CISA required action (federal due date 12 Feb 2026): Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Signals

KEV, exploited in the wild
yes, added 22 Jan 2026, due 12 Feb 2026
EPSS, 30-day forecast
75%, 100th percentile (as of 18 Nov 2026)
CVSS, NVD, MEDIUM
5.3
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Internet exposure
not stated

KEV is an observation, EPSS a forecast; KEV outranks it.

Timeline 31 Mar 2025 to today

296 days from the first proof of concept to the KEV listing
Disclosed 31 Mar 2025First PoC 1 Apr 2025KEV 22 Jan 2026today
  1. Disclosed
  2. First PoC+1 d
  3. KEV+296 d

296 days from the first proof of concept to the KEV listing

Detect it 3 rules · Sigma · QRadar · Cortex

  1. SIGAQLXQLT1190conf 90CVE exploitation, high

Generated by skopnix from this finding, each with false-positive notes. Open the list →

Linked 3 in our graph

Links our graph holds for this CVE, strongest first. The same data is in the graph API.

Indicators none tied yet

No threat feed has tied an indicator to this CVE yet. Checked every six hours.

On the wire 0 dispatches

No dispatch on our wire has named this CVE yet.

Public exploit code 6 known · links only

GitHub PoCs 6Metasploit 0Exploit-DB 0

GitHub PoCs, by trust then stars6

  1. sunhuiHi666/CVE-2025-31125Trust ok 1006 stars

    Vite 任意文件读取漏洞POC

    created 1 Apr 2025

  2. 0xgh057r3c0n/CVE-2025-31125Trust ok 1000 stars

    Vite WASM Import Path Traversal 🛡️

    created 7 May 2025

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

    created 13 Jul 2025

  4. Vite Development Server's @fs endpoint (CVE-2025-31125) to access sensitive files like /etc/passwd and /etc/hosts via crafted URLs.

    created 3 May 2025

  5. first seen by skopnix 18 Oct 2026

  6. first seen by skopnix 18 Oct 2026

Fake proof-of-concept repositories have been used to deliver malware to the researchers who run them. The trust verdict is our engine's heuristic over the repository (account age, what it ships, how its stars arrived); it is a reason to read the code first, not a finding about its author.

Nuclei detection templates1

  1. Path traversal vulnerability in Vite development server's @fs endpoint allows attackers to access files outside the intended directory. When exposed to the network, attackers can exploit this via crafted URLs to access sensitive system files.

    yaml · first seen by skopnix 18 Oct 2026

A Nuclei template is a scanner check that detects the flaw. It is not an exploit and is not counted as one.

References

Watch this one?

KEV additions reach Telegram and the KEV-only RSS as they land.

Telegram ↗KEV RSSAPIStack check