4.7

CVE-2026-112949: vitest-dev vitest Code Injection

CVSS: 4.7v3.1MediumAwaiting analysis
AliasesGHSA-qxg6-89mg-rqv8
Published 20-10-2026Last modified 20-10-2026

Vulnerability summary

CVE-2026-112949 is a medium (CVSS 4.7) Code Injection vulnerability in vitest-dev vitest. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.4% of scored vulnerabilities.

Overall risk
19/100
0100
Low · default modelHow is this calculated?
CVSS score
4.7/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.24%
0%100%
Low · Change unavailable
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 20-10-2026
    PublishedVulnerability first disclosed.

Description

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.24%

Chance of exploitation in the next 30 days

Percentile

14%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

21-10-202621-10-2026
EPSS score
0.24%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

@vitest2 products
  • mocker≥ 2.1.0-beta.7, < 4.1.12 | ≥ 5.0.0-beta.1, < 5.0.3
  • mocker≥ 2.1.0-beta.7, < 4.1.12 | ≥ 5.0.0, < 5.0.3
Vitest-dev1 product
  • vitest≥ 2.1.0-beta.7, < 4.1.12 | ≥ 5.0.0, < 5.0.3

2 vendors · 3 products

References

7 links