CVE-2025-31125: Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
(updated )
The contents of arbitrary files can be returned to the browser.
References
- github.com/advisories/GHSA-4r4m-qw57-chr8
- github.com/vitejs/vite
- github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949
- github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8
- nvd.nist.gov/vuln/detail/CVE-2025-31125
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125
Code Behaviors & Features
Detect and mitigate CVE-2025-31125 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 →