CVE-2026-112949

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.
Configurations

No configuration.

History

23 Oct 2026, 02:16

Type Values Removed Values Added
References () https://github.com/vitest-dev/vitest/security/advisories/GHSA-qxg6-89mg-rqv8 - () https://github.com/vitest-dev/vitest/security/advisories/GHSA-qxg6-89mg-rqv8 -

20 Oct 2026, 16:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-20 16:17

Updated : 2026-10-23 02:16


NVD link : CVE-2026-112949

Mitre link : CVE-2026-112949

CVE.ORG link : CVE-2026-112949


JSON object : View

Products Affected

No product.

CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')

CWE-116

Improper Encoding or Escaping of Output

CWE-306

Missing Authentication for Critical Function