Sovra Recon·Actively exploited

CVE-2025-31125Vite Vitejs Improper Access Control Vulnerability

At a glance

CVE-2025-31125 is a medium-severity vulnerability (CVSS score 5.3) affecting Vitejs (Vite). CISA has confirmed that attackers have been exploiting it since January 22, 2026.

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.

Details

The vulnerability in detail

CVE ID
CVE-2025-31125
Vendor
Vite
Product
Vitejs
Severity (CVSS)
Medium · 5.3 / 10
Published
March 31, 2025
Actively exploited
Yes, confirmed by CISA on January 22, 2026
Used in ransomware
Not reported
Weakness type (CWE)
CWE-200, CWE-284

What to do

How to protect against CVE-2025-31125

  • Check whether you are affected: npm audit in the project lists vulnerable dependencies; npm outdated shows the available versions.
  • Apply the vendor's patch as a priority on Internet-facing systems, since this vulnerability is already being exploited.
  • If no patch is available, apply the published workarounds or take the service off the Internet.
  • Look for signs of compromise: a vulnerability exploited before you patched may already have been used. Review your logs and the indicators published by the vendor.

Sources

Official descriptions from NVD and CISA, in their original wording.

Patching a CVE is not enough.

The vulnerabilities specific to your application have no CVE. Our AI agents hunt for them by actually attacking your systems.