{"schemaVersion":4,"id":"CVE-2026-140097","aliases":[],"status":"published","duplicateOf":null,"title":"Vite: Remote code execution using `__vite-browser-external` virtual module","description":"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:<suffix> and __vite-optional-peer-dep:<suffix> 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.","dates":{"published":"2026-11-30T22:25:25.829Z","modified":"2026-12-01T14:55:51.521Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9.1,"severity":"critical","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.1,"severity":"critical","vector":"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/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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01834,"percentile":0.79649,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-01T00:00:00.000Z","score":0.01834,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01834,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01834,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01834,"percentile":0.79649}],"last30":[{"date":"2026-12-01T00:00:00.000Z","score":0.01834,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01834,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01834,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01834,"percentile":0.79649}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output","description":"The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/116.html"}],"affected":[{"vendor":"vitejs","product":"vite","name":"vite","label":"vite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 6.4.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.0.0","startInclusive":true,"end":"6.4.6","endInclusive":false}},{"text":"≥ 7.0.0, < 7.3.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"7.0.0","startInclusive":true,"end":"7.3.8","endInclusive":false}},{"text":"≥ 8.0.0, < 8.1.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"8.0.0","startInclusive":true,"end":"8.1.7","endInclusive":false}},{"text":"≥ 8.2.0, < 8.2.5","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"8.2.0","startInclusive":true,"end":"8.2.5","endInclusive":false}},{"text":"≥ 8.3.0, < 8.3.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"8.3.0","startInclusive":true,"end":"8.3.7","endInclusive":false}}],"versionsText":"≥ 4.0.0, < 6.4.6 | ≥ 7.0.0, < 7.3.8 | ≥ 8.0.0, < 8.1.7 | ≥ 8.2.0, < 8.2.5 | ≥ 8.3.0, < 8.3.7","eol":null,"hubHref":"/vendor/vitejs/vite"},{"vendor":"vitejs","product":"vite-plus","name":"vite-plus","label":"vite-plus","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.5.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.5.1","endInclusive":false}}],"versionsText":"< 1.5.1","eol":null,"hubHref":"/vendor/vitejs/vite-plus"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7","label":"github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/vitejs/vite/pull/24043","label":"github.com/vitejs/vite/pull/24043","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/pull/24044","label":"github.com/vitejs/vite/pull/24044","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1","label":"github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946","label":"github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca","label":"github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15","label":"github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.md","label":"github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.md","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.md","label":"github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.md","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.md","label":"github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.md","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.md","label":"github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.md","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/releases/tag/v6.4.6","label":"github.com/vitejs/vite/releases/tag/v6.4.6","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/releases/tag/v7.3.8","label":"github.com/vitejs/vite/releases/tag/v7.3.8","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/releases/tag/v8.1.7","label":"github.com/vitejs/vite/releases/tag/v8.1.7","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/releases/tag/v8.2.5","label":"github.com/vitejs/vite/releases/tag/v8.2.5","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/vitejs/vite/releases/tag/v8.3.7","label":"github.com/vitejs/vite/releases/tag/v8.3.7","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-30T22:25:25.829Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-01T14:55:51.521Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,2,91],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.01834,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-01T14:55:51.521Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.1,"vector":"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","version":"4.0","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-01T14:55:51.521Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.1,"vector":"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/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","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-12-01T14:55:42.875Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.01834,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T08:03:46.847Z","stale":false,"partial":false}}