cybersecurity Request an audit

Actively exploited vulnerability / CVE-2025-31125

Vite: development server can expose files that should stay private

This vulnerability lets an attacker read files they should not have access to through the Vite development server. That can expose passwords, access keys or other sensitive data stored on the computer or server running the project. It is on the lists of vulnerabilities used in real attacks kept by CISA (the US cybersecurity agency) and ENISA (the EU cybersecurity agency).

Identifier
CVE-2025-31125 · EUVD-2025-8866
Severity
Medium (5.3/10)
On the CISA list (US)
yes, since 22 January 2026
Deadline given to US federal agencies
12 February 2026
On the ENISA list (EU)
yes
Probability of exploitation (EPSS)
14.8% (FIRST's estimate for the next 30 days)

Does it concern you?

Vite is a tool developers use to build and test JavaScript web applications. It concerns you if your own team or a supplier develops web applications for you and the Vite development server is made reachable over the network.

Ask your developers or supplier which Vite version they use and whether the development server is open to the network; the version is usually listed in the project's package.json file. Affected are versions before 4.5.11, version 5 releases before 5.4.16, 6.0 releases before 6.0.13, 6.1 releases before 6.1.3 and 6.2 releases before 6.2.4.

Affected products and versions

  • Vitejs
  • vite: before 4.5.11; from 5.0.0 before 5.4.16; from 6.0.0 before 6.0.13; from 6.1.0 before 6.1.3; from 6.2.0 before 6.2.4

What to do

Update Vite to a fixed version: 4.5.11, 5.4.16, 6.0.13, 6.1.3 or 6.2.4, depending on the release line in use. Until then, the development server should not be reachable from the network.

Versions that contain the fix: 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4.

The official description

The text below is the description from the public database.

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.

Sources

Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.

What you can do next

Request an audit

Find out what you expose, before someone else does.

Tell us who you are, confirm by email, and we will call you. Nothing is checked until you agree.

  1. You confirm by email, then we call you within two working days to understand your company and what should be checked.
  2. You get a fixed quote and a permission form that says exactly what we may test, and when.
  3. We do the work in the window you chose, and keep you posted.
  4. You get the report and a walkthrough call, then one retest of its findings within 30 days.

Only systems you own or may have checked / written permission first

Request an audit

No passwords or access details here. We ask for what we need after you sign the permission form.

After you send this, we email you a link to confirm it. We contact you only after you confirm.