Vite · Vitejs
CVE-2025-31125
Vite Vitejs Improper Access Control Vulnerability
CISA KEV record
- CISA date added
- 2026-01-22
- CISA due date
- 2026-02-12
- Known ransomware use
- Unknown
NVD risk context
7.5 HIGH
CVSS is a technical severity score. CISA’s KEV status remains the evidence that this vulnerability is known to be exploited.
Description
Vite Vitejs contains an improper access control vulnerability that 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.
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.
NVD reference index
Vendor and remediation references
NVD has tagged these sources as vendor advisories, patches, mitigations, or release notes.
- https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 ↗
- https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8 ↗
Other NVD references (1)
MITRE CWE context
CWE classification
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
View official MITRE CWE details ↗The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.
View official MITRE CWE details ↗NVD record timing
NVD record timeline
These dates describe NVD’s record, not CISA’s KEV addition or remediation due date.
- NVD published
- Mar 31, 2025, 05:15 PM UTC When NVD first published this CVE record.
- NVD last updated
- Jun 17, 2026, 09:09 AM UTC When NVD last changed its analysis or record data.
Advanced: view the technical CVSS vector
This standardized code is intended for security tools and technical analysts. The plain-language risk summary above explains its main points.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CISA notes
This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949 ; https://nvd.nist.gov/vuln/detail/CVE-2025-31125