Bug 2556257 (CVE-2026-112948) - CVE-2026-112948 vitest: vitest: Information disclosure via improper file access restrictions
Summary: CVE-2026-112948 vitest: vitest: Information disclosure via improper file acce...
Keywords:
Status: NEW
Alias: CVE-2026-112948
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2561810 2561811
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-20 15:39 UTC by OSIDB Bzimport
Modified: 2026-11-03 08:28 UTC (History)
51 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-20 15:39:16 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.