{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-46565","id":"CVE-2025-46565","title":"Vite's server.fs.deny bypassed with /. for files under project root","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 d","descriptionLong":"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.","published":"2025-05-01T17:20:29.773Z","updated":"2026-11-04T10:45:52.239859148Z","reserved":"2025-04-24T21:10:48.174Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6,"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6,"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["vitejs vite"],"affectedProducts":[{"vendor":"vitejs","product":"vite","defaultStatus":null,"versions":[{"version":">= 6.3.0, < 6.3.4","status":"affected"},{"version":">= 6.2.0, < 6.2.7","status":"affected"},{"version":">= 6.0.0, < 6.1.6","status":"affected"},{"version":">= 5.0.0, < 5.4.19","status":"affected"},{"version":"< 4.5.14","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=6.3.0 <6.3.4",">=6.2.0 <6.2.7",">=6.0.0 <6.1.6",">=5.0.0 <5.4.19","<4.5.14"],"fixed":["6.3.4","6.2.7","6.1.6","5.4.19","4.5.14"],"advisory":"GHSA-859w-5945-r5v3"}],"cwes":["CWE-22"],"aliases":["GHSA-859w-5945-r5v3"],"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46565.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46565","tags":["advisory"]},{"url":"https://github.com/vitejs/vite","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.01243,"epssPercentile":0.69875,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-46565","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46565","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-46565","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-859w-5945-r5v3","ok":true,"note":"GHSA-859w-5945-r5v3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-46565","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}