{"id":"CVE-2026-140097","summary":"Vite: Remote code execution using `__vite-browser-external` virtual module","details":"Vite is a frontend tooling framework for JavaScript. From 4.0.0 until 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7 in Vite, and prior to 1.5.1 in vite-plus, a network-exposed development server embeds request-derived module identifiers from the __vite-browser-external:\u003csuffix\u003e and __vite-optional-peer-dep:\u003csuffix\u003e virtual modules into trusted generated JavaScript without escaping. A remote unauthenticated attacker can inject an import that adds an outside file to the server.fs module allow list and can reach server-side evaluation through new Worker or import.meta.glob processing, allowing disclosure of local files and arbitrary code execution in the development-server process. This issue is fixed in Vite 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7, and in vite-plus 1.5.1.","aliases":["GHSA-p4f5-76q4-ffq7"],"modified":"2026-12-01T00:00:09.112081418Z","published":"2026-11-30T22:25:25.829Z","database_specific":{"cwe_ids":["CWE-116"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140097.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140097.json"},{"type":"WEB","url":"https://github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.md"},{"type":"FIX","url":"https://github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1"},{"type":"FIX","url":"https://github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946"},{"type":"FIX","url":"https://github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca"},{"type":"FIX","url":"https://github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15"},{"type":"FIX","url":"https://github.com/vitejs/vite/pull/24043"},{"type":"FIX","url":"https://github.com/vitejs/vite/pull/24044"},{"type":"WEB","url":"https://github.com/vitejs/vite/releases/tag/v6.4.6"},{"type":"WEB","url":"https://github.com/vitejs/vite/releases/tag/v7.3.8"},{"type":"WEB","url":"https://github.com/vitejs/vite/releases/tag/v8.1.7"},{"type":"WEB","url":"https://github.com/vitejs/vite/releases/tag/v8.2.5"},{"type":"WEB","url":"https://github.com/vitejs/vite/releases/tag/v8.3.7"},{"type":"ADVISORY","url":"https://github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140097"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vitejs/vite","events":[{"introduced":"566d4c7bb51cf56550a5374ee46e1e1cbea1cf1f"},{"fixed":"129b54cb423c69048f6a9b5d5766033c0173ef77"},{"introduced":"b85f32275b443bf6b647572a9209f1e078b5b4dd"},{"fixed":"dd44573ca4df1546d8da17b6956d6a8b1e4cf821"},{"introduced":"b565af6f1123a62b3058253b2147574b8515e89f"},{"fixed":"c9641f8f0faf8a848a7ebad8e61fd6922ec1aebd"},{"introduced":"fa79f9ab699f9a22a6f9b50f3d247be6b51f684d"},{"fixed":"acbb01190818b68c97fe7181feda775ed1f4e00f"},{"introduced":"434e8e9495436a60789f2b588a04a6a24a3d1661"},{"fixed":"5def936009d2637a48d056e197aebc6242ac27c6"},{"introduced":"0"},{"fixed":"365e3ad224e83e99811e61edd8a6aab7b2280cce"},{"fixed":"4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1"},{"fixed":"517affb174632db347a6a2426f12eab020277946"},{"fixed":"8ef8a1b27bcd0e8e7693569f98b52b1b111025ca"},{"fixed":"e5f23b60f0c46a906a60986faad88a5bd7611a15"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"4.0.0"},{"fixed":"6.4.6"}]},{"strategy":"StringRangeExpression","range":[{"introduced":"7.0.0"},{"fixed":"7.3.8"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"8.0.0"},{"fixed":"8.1.7"}]},{"strategy":"StringRangeExpression","range":[{"introduced":"8.2.0"},{"fixed":"8.2.5"}],"source":"AFFECTED_FIELD"},{"strategy":"StringRangeExpression","range":[{"introduced":"8.3.0"},{"fixed":"8.3.7"}],"source":"AFFECTED_FIELD"},{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"1.5.1"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"517affb174632db347a6a2426f12eab020277946"}]},{"range":[{"fixed":"8ef8a1b27bcd0e8e7693569f98b52b1b111025ca"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"e5f23b60f0c46a906a60986faad88a5bd7611a15"}]},{"original_tag":"v6.4.6","range":[{"fixed":"129b54cb423c69048f6a9b5d5766033c0173ef77"}],"source":"REFERENCES_TAG"},{"original_tag":"v7.3.8","range":[{"fixed":"dd44573ca4df1546d8da17b6956d6a8b1e4cf821"}],"source":"REFERENCES_TAG"},{"source":"REFERENCES_TAG","original_tag":"v8.1.7","range":[{"fixed":"c9641f8f0faf8a848a7ebad8e61fd6922ec1aebd"}]},{"original_tag":"v8.2.5","range":[{"fixed":"acbb01190818b68c97fe7181feda775ed1f4e00f"}],"source":"REFERENCES_TAG"},{"range":[{"fixed":"5def936009d2637a48d056e197aebc6242ac27c6"}],"source":"REFERENCES_TAG","original_tag":"v8.3.7"}]}}],"versions":["v6.4.5","v7.3.7","v8.2.4","v8.1.6","create-vite@9.3.4","plugin-legacy@8.2.4","v8.3.6","create-vite@9.3.3","create-vite@9.3.2","v8.3.5","v6.4.4","create-vite@9.3.1","create-vite@9.3.0","v8.3.4","v8.3.3","v7.3.6","v8.1.5","v8.2.2","v8.3.2","v8.3.1","create-vite@9.2.1","v8.3.0","plugin-legacy@8.2.3","v8.2.1","create-vite@9.1.2","v8.2.0","plugin-legacy@8.2.1","plugin-legacy@8.2.0","v8.1.4","v8.1.3","v8.1.2","create-vite@9.1.1","v8.1.1","create-vite@9.1.0","v7.3.5","plugin-legacy@8.1.0","v8.1.0","plugin-legacy@8.1.0-beta.0","v8.1.0-beta.0","v8.0.16","v6.4.3","v6.4.2","v7.3.3","v8.0.15","v8.0.14","plugin-legacy@8.0.2","v8.0.13","create-vite@9.0.7","v8.0.12","v8.0.11","v7.3.2","create-vite@9.0.6","v8.0.10","create-vite@9.0.5","v8.0.9","v8.0.8","v8.0.7","v8.0.6","v8.0.5","v6.4.1","create-vite@9.0.4","v8.0.4","plugin-legacy@8.0.1","v8.0.3","v8.0.2","create-vite@9.0.3","v8.0.1","create-vite@9.0.2","create-vite@9.0.1","create-vite@9.0.0","plugin-legacy@8.0.0","v8.0.0","create-vite@8.3.0","v7.3.1","v7.3.0","v7.2.7","v7.2.6","v7.2.5","create-vite@8.2.0","v7.2.4","v7.2.3","create-vite@8.1.0","create-vite@8.0.3","v7.2.2","v7.2.1","v7.2.0","v7.2.0-beta.1","v7.2.0-beta.0","v7.1.11","v6.4.0","v6.3.7","v7.1.10","v6.3.6","v7.1.9","v7.1.8","create-vite@8.0.2","create-vite@8.0.1","create-vite@8.0.0","create-vite@8.0.0-beta.0","create-vite@7.1.3","v7.1.7","create-vite@7.1.2","v7.1.6","v7.1.5","v7.0.6","v7.1.4","v7.1.3","create-vite@7.1.1","v7.1.2","create-vite@6.5.0","v7.1.1","plugin-legacy@7.2.1","create-vite@7.1.0","plugin-legacy@7.2.0","v7.1.0","v7.1.0-beta.1","v7.1.0-beta.0","plugin-legacy@7.1.0","plugin-legacy@7.0.1","v7.0.5","create-vite@7.0.3","create-vite@7.0.2","v7.0.4","create-vite@7.0.1","v7.0.3","v7.0.2","v7.0.1","create-vite@7.0.0","plugin-legacy@7.0.0","v7.0.0","v6.3.5","v6.3.4","plugin-legacy@6.1.1","v6.3.3","v6.3.2","create-vite@6.4.1","v6.3.1","create-vite@6.4.0","plugin-legacy@6.1.0","v6.3.0","v6.3.0-beta.2","v6.3.0-beta.1","v6.3.0-beta.0","v6.0.11","v6.1.1","v6.2.2","v6.2.1","create-vite@6.3.1","create-vite@6.3.0","plugin-legacy@6.0.2","create-vite@6.2.1","v6.2.0","v6.2.0-beta.1","v6.2.0-beta.0","create-vite@6.2.0","plugin-legacy@6.0.1","v6.1.0","v6.1.0-beta.2","v6.1.0-beta.1","v6.1.0-beta.0","v6.0.10","v6.0.9","v6.0.8","v6.0.7","v6.0.6","create-vite@6.1.1","v6.0.5","v6.0.4","create-vite@6.1.0","v6.0.3","v6.0.2","create-vite@6.0.1","v6.0.1","create-vite@6.0.0","plugin-legacy@6.0.0","v6.0.0","v6.0.0-beta.10","v6.0.0-beta.9","v6.0.0-beta.8","v6.0.0-beta.7","create-vite@5.5.5","v6.0.0-beta.6","plugin-legacy@5.4.3","v6.0.0-beta.5","v6.0.0-beta.4","create-vite@5.5.4","v6.0.0-beta.3","create-vite@5.5.3","v6.0.0-beta.2","v6.0.0-beta.1","v5.3.5","v6.0.0-beta.0","v5.4.3","v5.4.2","plugin-legacy@5.4.2","create-vite@5.5.2","v5.4.1","create-vite@5.5.1","create-vite@5.5.0","v5.4.0","v5.4.0-beta.1","v5.4.0-beta.0","create-vite@5.4.0","v5.3.4","v5.3.3","v5.3.2","create-vite@5.3.0","v5.3.1","v5.3.0","v5.3.0-beta.2","v5.3.0-beta.1","v5.3.0-beta.0","plugin-legacy@5.4.1","v5.2.12","plugin-legacy@5.4.0","v5.2.11","v5.2.10","v5.2.9","v5.2.8","v5.2.7","v5.2.6","v5.1.6","v5.2.5","v5.2.4","v5.2.3","v5.2.2","v5.2.1","create-vite@5.2.3","v5.2.0","v5.2.0-beta.1","v5.2.0-beta.0","create-vite@5.2.2","plugin-legacy@5.3.2","v5.1.5","create-vite@5.2.1","plugin-legacy@5.3.1","v5.1.4","v5.1.3","v5.1.2","v5.1.1","create-vite@5.2.0","v5.1.0","v5.1.0-beta.7","v5.1.0-beta.6","v5.1.0-beta.5","v5.1.0-beta.4","plugin-legacy@5.3.0","v5.1.0-beta.3","v5.1.0-beta.2","v5.1.0-beta.1","v5.0.11","v5.1.0-beta.0","v5.0.10","v5.0.9","create-vite@5.1.0","v5.0.8","v5.0.7","v5.0.6","v5.0.5","v5.0.4","v5.0.3","plugin-legacy@5.2.0","v5.0.2","plugin-legacy@5.1.0","v5.0.1","create-vite@5.0.0","plugin-legacy@5.0.0","v5.0.0","v5.0.0-beta.20","plugin-legacy@5.0.0-beta.3","v5.0.0-beta.19","v5.0.0-beta.18","v5.0.0-beta.17","v5.0.0-beta.16","v5.0.0-beta.15","v5.0.0-beta.14","v5.0.0-beta.13","v5.0.0-beta.12","create-vite@5.0.0-beta.1","v5.0.0-beta.11","v5.0.0-beta.10","v5.0.0-beta.9","v5.0.0-beta.8","v5.0.0-beta.7","v5.0.0-beta.6","plugin-legacy@5.0.0-beta.2","v5.0.0-beta.5","create-vite@5.0.0-beta.0","v5.0.0-beta.4","plugin-legacy@5.0.0-beta.1","v5.0.0-beta.3","plugin-legacy@5.0.0-beta.0","v5.0.0-beta.2","v5.0.0-beta.1","v5.0.0-beta.0","v4.4.9","v4.4.8","v4.4.7","v4.4.6","create-vite@4.4.1","plugin-legacy@4.1.1","v4.4.5","v4.4.4","v4.4.3","v4.4.2","v4.4.1","create-vite@4.4.0","plugin-legacy@4.1.0","v4.4.0","v4.4.0-beta.4","v4.4.0-beta.3","v4.4.0-beta.2","plugin-legacy@4.0.5","v4.4.0-beta.1","v4.4.0-beta.0","create-vite@4.3.2","v4.3.9","v4.0.4","v4.1.4","plugin-legacy@4.0.4","v4.3.8","v4.3.7","v4.3.6","v4.3.5","v4.3.4","v4.3.3","create-vite@4.3.1","plugin-legacy@4.0.3","v4.3.2","v4.3.1","create-vite@4.3.0","v4.3.0","v4.3.0-beta.8","v4.2.1","v4.3.0-beta.7","v4.3.0-beta.6","v4.3.0-beta.5","v4.3.0-beta.4","v4.3.0-beta.3","create-vite@4.3.0-beta.0","v4.3.0-beta.2","v4.3.0-beta.1","v4.3.0-beta.0","create-vite@4.2.0","plugin-legacy@4.0.2","v4.2.0","v4.2.0-beta.2","create-vite@4.2.0-beta.1","create-vite@4.2.0-beta.0","v4.2.0-beta.1","v4.2.0-beta.0","v4.1.3","v4.1.2","v4.1.1","plugin-legacy@4.0.1","create-vite@4.1.0","plugin-legacy@4.0.0","v4.1.0","v4.1.0-beta.2","create-vite@4.1.0-beta.0","v4.1.0-beta.1","v4.1.0-beta.0","v4.0.3","v4.0.2","v4.0.1","create-vite@4.0.0","plugin-legacy@3.0.1","plugin-legacy@3.0.0","v4.0.0","create-vite@2.5.3","plugin-legacy@1.5.0","plugin-react-refresh@1.3.6","plugin-vue-jsx@1.1.7","plugin-vue@1.3.0","v2.4.4","create-vite@2.5.2","v2.4.3","create-vite@2.5.1","plugin-vue@1.2.5","plugin-legacy@1.4.4","v2.4.2","create-vite@2.5.0","v2.4.1","create-app@2.4.5","plugin-react-refresh@1.3.5","v2.4.0","v2.4.0-beta.3","v2.4.0-beta.2","v2.4.0-beta.1","v2.4.0-beta.0","plugin-vue@1.2.4","plugin-react-refresh@1.3.4","plugin-vue-jsx@1.1.6","plugin-legacy@1.4.3","create-app@2.4.4","plugin-legacy@1.4.2","v2.3.8","create-app@2.4.3","create-app@2.4.2","v2.3.7","v2.3.6","create-app@2.4.1","plugin-vue-jsx@1.1.5","plugin-legacy@1.4.1","create-app@2.4.0","plugin-vue@1.2.3","v2.3.5","create-app@2.3.2","v2.3.4","create-app@2.3.1","plugin-legacy@1.4.0","v2.3.3","v2.3.2","v2.3.1","create-app@2.3.0","plugin-legacy@1.3.4","v2.3.0","plugin-legacy@1.3.3","plugin-vue-jsx@1.1.4","v2.2.4","create-app@2.2.5","v2.2.3","plugin-react-refresh@1.3.3","plugin-vue@1.2.2","v2.2.2","v2.2.1","v2.2.0","create-app@2.2.4","create-app@2.2.3","plugin-vue-jsx@1.1.3","plugin-react-refresh@1.3.2","v2.1.5","plugin-vue@1.2.1","v2.1.4","plugin-legacy@1.3.2","plugin-vue@1.2.0","create-app@2.2.2","create-app@2.2.1","v2.1.3","v2.1.2","v2.1.1","create-app@2.2.0","create-app@2.1.0","v2.1.0","create-app@2.0.2","v2.0.5","v2.0.4","plugin-vue@1.1.5","v2.0.3","plugin-vue-jsx@1.1.2","plugin-vue-jsx@1.1.1","v2.0.2","create-app@2.0.1","v2.0.1","create-app@2.0.0","v2.0.0","create-app@1.8.0","plugin-legacy@1.3.1","v2.0.0-beta.70","create-app@1.7.1","plugin-legacy@1.3.0","v2.0.0-beta.69","v2.0.0-beta.68","plugin-react-refresh@1.3.1","v2.0.0-beta.67","plugin-vue-jsx@1.1.0","v2.0.0-beta.66","plugin-vue-jsx@1.0.3","create-app@1.7.0","plugin-react-refresh@1.3.0","create-app@1.6.0","v2.0.0-beta.65","create-app@1.5.2","v2.0.0-beta.64","v2.0.0-beta.63","v2.0.0-beta.62","plugin-react-refresh@1.2.2","plugin-react-refresh@1.2.1","plugin-react-refresh@1.2.0","plugin-legacy@1.2.3","v2.0.0-beta.61","v2.0.0-beta.60","plugin-vue@1.1.4","v2.0.0-beta.59","v2.0.0-beta.58","plugin-vue@1.1.3","v2.0.0-beta.57","plugin-react-refresh@1.1.3","v2.0.0-beta.56","v2.0.0-beta.55","v2.0.0-beta.54","v2.0.0-beta.53","v2.0.0-beta.52","v2.0.0-beta.51","create-app@1.5.1","v2.0.0-beta.50","v2.0.0-beta.49","create-app@1.5.0","v2.0.0-beta.48","plugin-legacy@1.2.2","v2.0.0-beta.47","v2.0.0-beta.46","create-app@1.4.0","plugin-vue@1.1.2","v2.0.0-beta.45","create-app@1.3.0","plugin-vue@1.1.1","v2.0.0-beta.44","v2.0.0-beta.43","v2.0.0-beta.42","v2.0.0-beta.41","v2.0.0-beta.40","v2.0.0-beta.39","v2.0.0-beta.38","v2.0.0-beta.37","v2.0.0-beta.35","v2.0.0-beta.34","v2.0.0-beta.33","v2.0.0-beta.32","plugin-react-refresh@1.1.2","plugin-vue@1.1.0","v2.0.0-beta.31","plugin-vue@1.0.6","v2.0.0-beta.30","v2.0.0-beta.29","v2.0.0-beta.28","plugin-legacy@1.2.1","v2.0.0-beta.27","v2.0.0-beta.26","v2.0.0-beta.25","plugin-vue-jsx@1.0.2","v2.0.0-beta.24","v2.0.0-beta.23","plugin-legacy@1.2.0","v2.0.0-beta.22","v2.0.0-beta.21","v2.0.0-beta.20","v2.0.0-beta.19","v2.0.0-beta.18","v2.0.0-beta.17","v2.0.0-beta.16","plugin-legacy@1.1.1","plugin-vue@1.0.5","v2.0.0-beta.15","v2.0.0-beta.14","v2.0.0-beta.13","create-app@1.1.0","plugin-legacy@1.1.0","plugin-legacy@1.0.1","v2.0.0-beta.12","v2.0.0-beta.11","plugin-legacy@1.0.0","plugin-react-refresh@1.1.1","v2.0.0-beta.10","v2.0.0-beta.9","v2.0.0-beta.8","create-app@1.0.6","v2.0.0-beta.7","v2.0.0-beta.6","create-app@1.0.5","v2.0.0-beta.5","create-app@1.0.4","plugin-vue-jsx@1.0.1","v2.0.0-beta.4","plugin-vue-jsx@1.0.0","plugin-vue@1.0.4","v2.0.0-beta.3","create-app@1.0.3","create-app@1.0.2","plugin-vue@1.0.3","v2.0.0-beta.2","create-app@1.0.1","create-app@1.0.0","v2.0.0-beta.1","plugin-react-refresh@1.1.0","v2.0.0-alpha.5","v2.0.0-alpha.4","v2.0.0-alpha.3","v2.0.0-alpha.2","v2.0.0-alpha.1","v1.0.0-rc.13","v1.0.0-rc.11","v1.0.0-rc.10","v1.0.0-rc.9","v1.0.0-rc.8","v1.0.0-rc.7","v1.0.0-rc.6","v1.0.0-rc.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140097.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"}]}