{"cve":"CVE-2025-31486","nvd":{"published":"2025-04-03T19:15:39.890","modified":"2026-06-17T09:10:29.170","status":"Deferred","description":"Vite is a frontend tooling framework for javascript. The contents of arbitrary files can be returned to the browser. By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the server.fs.deny restriction was able to bypass. This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+. 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 4.5.12, 5.4.17, 6.0.14, 6.1.4, and 6.2.5.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3},"cwes":["CWE-200","CWE-284"],"references":["https://github.com/vitejs/vite/blob/037f801075ec35bb6e52145d659f71a23813c48f/packages/vite/src/node/plugins/asset.ts#L285-L290","https://github.com/vitejs/vite/commit/62d7e81ee189d65899bb65f3263ddbd85247b647","https://github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x","https://github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:00:57.946988208+00:00"},"epss":{"cve":"CVE-2025-31486","score":0.40461,"percentile":0.98646,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-xcj6-pq6g-qj4x","url":"https://osv.dev/vulnerability/GHSA-xcj6-pq6g-qj4x","summary":"Vite allows server.fs.deny to be bypassed with .svg or relative paths","modified":"2026-09-10T03:49:36.567949213Z","packages":[{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.2.0 <6.2.5"],"fixed":["6.2.5"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.1.0 <6.1.4"],"fixed":["6.1.4"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.0.0 <6.0.14"],"fixed":["6.0.14"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=5.0.0 <5.4.17"],"fixed":["5.4.17"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":["<4.5.12"],"fixed":["4.5.12"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}