Urgent
Vite dev server remote code execution via __vite-browser-external module
CVE-2026-140097
Web developers who open their dev server to the outside can be hacked!
- CVE
- CVE-2026-140097 (opens in a new tab)
- Score
- CVSS 9.1
- First seen
Mitigation
Update to the fixed version for your Vite or vite-plus line. Find your product's fixed version in the list below.
Fixed version by product
- vite 6
- 6.4.6 or later
- vite 7
- 7.3.8 or later
- vite 8.1
- 8.1.7 or later
- vite 8.2
- 8.2.5 or later
- vite 8.3
- 8.3.7 or later
- vite-plus
- 1.5.1 or later
1 moreShow less
Summary
The Vite dev server puts request-derived module names into generated code without escaping, so an unauthenticated remote attacker can read server files or run code on the server. Vite and vite-plus users whose dev server is exposed to the network are affected.
Affected when
dev server exposed to the network (--host or server.host config)
1 other Incident of this product in the last 30 days
Incidents by product: vite-plus · vite
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
- Discussion: Vite Remote Code Execution (opens in a new tab)
- KISA notice: KISA 보호나라: Vite 제품 보안 업데이트 권고 (opens in a new tab)