Bug 2556257 (CVE-2026-112948)

Summary: CVE-2026-112948 vitest: vitest: Information disclosure via improper file access restrictions
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anujha, aschwart, asoldano, aszczucz, bbaranow, bmaxwell, boliveir, bstansbe, cdrage, csuconic, dbruscin, dlofthou, doconnor, drichtar, dschmidt, eborisov, gtully, istudens, ivassile, iweiss, jlanda, jsherman, kshier, kvanderr, lball, mosmerov, mposolda, msvehla, ngough, nwallace, pberan, pesilva, pjindal, pmackay, rbobbitt, rgemmell, rgodfrey, rmartinc, rstancel, rushinde, simaishi, ssilvert, stcannon, sthorger, tbish, thjenkin, tlavocat, vdosoudi, veshanka, vmuzikar, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in vitest. Vitest development servers fail to properly enforce file access restrictions, permitting access to paths that should be denied. An attacker who can reach an affected development server or who tricks a user into visiting a malicious website can exploit this flaw to read restricted project files, internal API tokens, and sensitive environment variables.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2561810, 2561811    
Bug Blocks:    

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.