CVE-2026-112949
Published:October 20, 2026
Updated:October 21, 2026
Vitest is a Vite-native testing framework for JavaScript and TypeScript projects. From 2.1.0-beta.7 until 4.1.12 and 5.0.3, an unauthenticated non-browser WebSocket client that can reach a development server using interceptorPlugin can register a manual mock whose attacker-controlled url createManualModuleSource inserts unescaped into generated module source. When the developer browser loads the affected module, attacker-controlled JavaScript executes on the development-server origin. This issue is fixed in versions 4.1.12 and 5.0.3.
Affected Packages
https://github.com/vitest-dev/vitest.git (GITHUB):
Affected version(s) >=v5.0.0-beta.1 <v5.0.3Fix Suggestion:
Update to version v5.0.3https://github.com/vitest-dev/vitest.git (GITHUB):
Affected version(s) >=v4.0.0-beta.1 <v4.1.12Fix Suggestion:
Update to version v4.1.12@vitest/mocker (NPM):
Affected version(s) >=5.0.0-beta.1 <5.0.3Fix Suggestion:
Update to version 5.0.3@vitest/mocker (NPM):
Affected version(s) >=4.0.0-beta.1 <4.1.12Fix Suggestion:
Update to version 4.1.12Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE