Vulnerability record

CVE-2025-31125

Vite Vitejs Improper Access Control Vulnerability

Severity: HighExploitation: Exploitation confirmedCISA KEV
What should I do?

This vulnerability is in the CISA Known Exploited Vulnerabilities catalog: attackers are using it. If you run Vitejs, fix it now.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

US federal civilian agencies must remediate by Feb 12, 2026.

Patch status

Official fix available since

Apply the vendor's update to every affected system. Check the fixed-in versions below where known.

Basis: NVD patch reference

Description

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.

Source: NIST National Vulnerability Database. Official vulnerability data, reproduced as published.

Affected products

Products affected by this vulnerability, with versions and the source of each entry
ProductVendorSource
VitejsViteKEV

Sources: KEV = CISA Known Exploited Vulnerabilities catalog. Version details have not been published yet.

Intelligence timeline

Developments from the last 30 days, newest first.

  1. CVSS scoredUpdateKEV

    CVE-2025-31125 scored CVSS 7.5: Vite Vitejs, Vite Vitejs Improper Access Control Vulnerability

    CISA lists this as exploited in the wild. Unpatched Vitejs systems are exposed to active attacks now.

    Basis: NIST National Vulnerability Database

  2. Patch releasedUpdateKEV

    Patch released for CVE-2025-31125: Vite Vitejs, Vite Vitejs Improper Access Control Vulnerability

    An official fix is now available for Vite Vitejs. This vulnerability is being exploited, so apply it promptly.

    Basis: NVD patch reference

1 earlier event is available with a subscription. See plans.

Coverage

We have not published a story about this vulnerability yet.

References

  • github.com https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
  • nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-31125
  • github.com https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
  • cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125