Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2025-31125: Vite Vitejs Improper Access Control Vulnerability

73
Patch now
MEDIUM 5.3EXPLOITEDUPGRADE

CVE-2025-31125 is a medium-severity flaw (CVSS 5.3) affecting vite, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score5.3 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionRequired
EPSS exploit chance74.9% (top 1%)
CISA exploited listYes, fix due 2026-02-12
WeaknessCWE-200, CWE-284
Published2025-03-31
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: vitejs

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

vitejs vite UPGRADE
Affected: < 4.5.11 · >= 5.0.0 and < 5.4.16 · >= 6.0.0 and < 6.0.13 · >= 6.1.0 and < 6.1.3 · >= 6.2.0 and < 6.2.4
Fixed in: 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4
Safe to downgrade to: a release before 5.0.0
1. Check installed version
npm ls vite
2. UPGRADE to 4.5.11
npm install vite@">=4.5.11"
3. If no update is available yet, DOWNGRADE to a release before 5.0.0
npm view vite versions npm install vite@"<5.0.0"
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

npm · vite · FIXED · 6.2.4 · vulnerable: >= 6.2.0, < 6.2.4 · source
npm install vite@">=6.2.4" npm ls vite
Fedora ELN · ibus-typing-booster · FIXED · 2.31.3-1.eln159 · FEDORA-2026-c895c68d60 · source
sudo dnf upgrade --advisory=FEDORA-2026-c895c68d60
Fedora 46 · perl-WWW-OrangeHRM-Client · FIXED · 0.12.0-21.fc46 · FEDORA-2026-2d14efca09 · source
sudo dnf upgrade --advisory=FEDORA-2026-2d14efca09

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2025-31125?

vite: upgrade to 4.5.11, 5.4.16, 6.0.13, 6.1.3, 6.2.4. Exact commands for each OS are on this page.

Is CVE-2025-31125 being exploited?

Yes. CVE-2025-31125 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2025-31125 affect?

CVE-2025-31125 affects vite. Severity is medium (CVSS 5.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)

How urgent is CVE-2025-31125?

Priority 73/100. EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.