CVE-2026-112948

LOWCVSS 6.5 · MEDIUM

Signal is active with 2 mentions in latest observed window

Immediate actions

  • Track advisory updates for patch or workaround availability

Recommended action window: Monitor and triage in normal cycle

NVD description

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.

0.0/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-200CWE-552

Priority

LOW

Exploitation

NONE

PoC

NONE

Patch

NONE

Momentum

NONE

Threat summary

  • 2 mentions across 1 observed day

What's happening

  • 2 total mentions across 1 day

Deep dive

Activity timeline2 mentions / 1d
01122Mentions · 2026-10-26: 210-26
Referenced assets1 URL
Full discourse2 posts
  • DevOmniTools Developer Suite@devomnitools

    🚨 Security Advisory: How CVE-2026-112948 in Vitest 5 leaked raw .env files over plain HTTP. A simple array bug in server.fs.deny dropped Vite's default file protections during "vitest --ui" test runs. Here is how to audit & patch your project 🧵👇 https://t.co/YrqDUJNbZe

    1002058
    9 followersView on X
  • DevOmniTools Developer Suite@devomnitools

    To remediate: Upgrade to Vitest >= 5.0.2 Explicitly guard .env in vite.config.ts Rotate exposed secrets using offline CSPRNG tools Full technical breakdown & remediation guide: https://www.devomnitools.com/en/guides/vitest-dev-server-secret-leak-cve-2026-112948/ #webdev #security #JavaScript

    0000028
    9 followersView on X

Explore more