Live threats

All CVEs / vitest-dev

CVE-2026-112948vitest-dev vitest

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
—
Auth required
No
Published
Oct 20, 2026
Updated
Oct 20, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200, CWE-552
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

What happens

Vitest is a testing framework powered by Vite. From 5.0.0-beta.6 until 5.0.5, Vitest dev servers can misapply server.fs.deny because project servers replace Vite's defaults and the root server adds .vitest-secret-token after Vite compiles its matcher. An attacker who can reach an affected UI, Browser Mode, or API server can read denied project files or the fallback API token at node_modules/.vitest/.vitest-secret-token, and Browser Mode with test.projects can expose JavaScript-compatible .env values through a malicious website. This issue is fixed in version 5.0.5.

Original NVD text.

What to do

  1. Apply the vendor's security update for vitest.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @vitest/browser ≥ 5.0.0-beta.6 < 5.0.5 5.0.5 npm install @vitest/browser@5.0.5
npm @vitest/ui ≥ 5.0.0-beta.6 < 5.0.5 5.0.5 npm install @vitest/ui@5.0.5
npm vite-plus ≥ 1.0.0-rc.0 < 1.3.0 1.3.0 npm install vite-plus@1.3.0

Per OSV / GitHub Advisories (GHSA-p458-7748-mcp3). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.