CVE-2025-31486: Vite allows server.fs.deny to be bypassed with .svg or relative paths
(updated )
The contents of arbitrary files can be returned to the browser.
References
- github.com/advisories/GHSA-xcj6-pq6g-qj4x
- github.com/vitejs/vite
- github.com/vitejs/vite/blob/037f801075ec35bb6e52145d659f71a23813c48f/packages/vite/src/node/plugins/asset.ts
- github.com/vitejs/vite/commit/62d7e81ee189d65899bb65f3263ddbd85247b647
- github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x
- nvd.nist.gov/vuln/detail/CVE-2025-31486
Code Behaviors & Features
Detect and mitigate CVE-2025-31486 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →