{"cve":"CVE-2025-46565","nvd":{"published":"2025-05-01T18:15:57.797","modified":"2026-06-17T09:26:37.953","status":"Analyzed","description":"Vite is a frontend tooling framework for javascript. Prior to versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14, the contents of files in the project root that are denied by a file matching pattern can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. Only files that are under project root and are denied by a file matching pattern can be bypassed. `server.fs.deny` can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass for files under `root` by using a combination of slash and dot (/.). This issue has been patched in versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.0},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-22"],"references":["https://github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb","https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3","https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3"],"products":["vitejs:vite"],"source":"nvd","synced_at":"2026-10-19T22:01:22.920403922+00:00"},"epss":{"cve":"CVE-2025-46565","score":0.01222,"percentile":0.68729,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-859w-5945-r5v3","url":"https://osv.dev/vulnerability/GHSA-859w-5945-r5v3","summary":"Vite's server.fs.deny bypassed with /. for files under project root","modified":"2026-09-10T03:50:23.700922294Z","packages":[{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.3.0 <6.3.4"],"fixed":["6.3.4"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.2.0 <6.2.7"],"fixed":["6.2.7"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.0.0 <6.1.6"],"fixed":["6.1.6"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=5.0.0 <5.4.19"],"fixed":["5.4.19"]},{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":["<4.5.14"],"fixed":["4.5.14"]}]}],"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."]}