Missing Authorization Affecting @vitest/ui package, versions <3.2.5>=4.0.0-beta.1 <4.1.0-beta.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Missing Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-VITESTUI-17120328
  • published2 Jun 2026
  • disclosed1 Jun 2026
  • creditsapphi-red

Introduced: 1 Jun 2026

NewCVE-2026-47429  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade @vitest/ui to version 3.2.5, 4.1.0-beta.3 or higher.

Overview

@vitest/ui is an UI for Vitest

Affected versions of this package are vulnerable to Missing Authorization through the api and browser.api request handlers in the server and UI components. An attacker can run tests, modify project files, or overwrite snapshots by connecting to an exposed API/UI server and invoking the interactive actions that trigger file writes or test execution. When the API server is reachable from the network, the vulnerable code paths in the browser UI and browser command handlers allow write and exec operations without enforcing the intended restrictions, enabling a remote client to modify source files, save attachments, and launch test files on the host machine. This can corrupt the project workspace and execute attacker-controlled code within the Vitest process.

CVSS Base Scores

version 4.0
version 3.1