CVE-2026-112949CWE-116CWE-306CWE-94code-injection

CVE-2026-112949

Medium · published October 20, 2026

CVSS v3.1
4.7
EPSS
0%
Percentile
14.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.7 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00242 · 14.5th percentile
Weaknesses
CWE-116 · Improper Encoding or Escaping of Output; CWE-306 · Missing Authentication for Critical Function; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-10-20T20:17Z
References (6)
EPSS history
Timeline
  • 22 OCT 03:29Z
    EPSS moved — → 0%
    epss
  • 20 OCT 15:19Z
    Vitest: Code injection via unauthenticated manual mock registration
    cvelistv5
  • 20 OCT 15:19Z
    Vitest: Code injection via unauthenticated manual mock registration
    cvelistv5