CVE-2025-31125GHSA-4r4m-qw57-chr8
Vite Vitejs Improper Access Control Vulnerability
Vite VitejsnpmLibraries & packages
CVSS
5.3MediumExploit odds (EPSS)65.2%Chance of exploitation activity in the next 30 days, higher than 99% of CVEs. Scored 23 Oct 2026FIRST EPSS
CISA required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. CISA KEV
What fixes it
- 6.2.4vite, npmOSV
npm install vite@6.2.4 - 6.1.3vite, npmOSV
npm install vite@6.1.3 - 6.0.13vite, npmOSV
npm install vite@6.0.13 - 5.4.16vite, npmOSV
npm install vite@5.4.16 - 4.5.11vite, npmOSV
npm install vite@4.5.11
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Timeline
Public exploit code and templates 1
- Scanner templateVite Development Server - Path TraversalNuclei
Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.
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.
Text from CVE List
Affected versions 10
- viteaffected: >= 6.2.0, < 6.2.4CVE List
- viteaffected: >= 6.1.0, < 6.1.3CVE List
- viteaffected: >= 6.0.0, < 6.0.13CVE List
- viteaffected: >= 5.0.0, < 5.4.16CVE List
- viteaffected: < 4.5.11CVE List
- vite, npmfrom 6.2.0, fixed in 6.2.4OSV
- vite, npmfrom 6.1.0, fixed in 6.1.3OSV
- vite, npmfrom 6.0.0, fixed in 6.0.13OSV
- vite, npmfrom 5.0.0, fixed in 5.4.16OSV
- vite, npmfrom first release, fixed in 4.5.11OSV
References 4
- github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949Fixvia CVE List
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8Exploitvia CVE List
- nvd.nist.gov/vuln/detail/CVE-2025-31125Referencevia CISA KEV
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125Referencevia CVE List