Skip to content
OpenAdvisories
Critical · 9.4 CVE-2026-73653 EUVD-2026-58197GHSA-p63j-vcc4-9vmv

Vitest: Browser Mode provider commands bypass the file-access permission gate

Published Aug 13, 2026 · Updated Aug 13, 2026 · Assigned by GitHub_M

Description

Vitest is a testing framework powered by Vite. Prior to versions 3.2.7, 4.1.10, and 5.0.0-beta.6, Browser Mode provider commands including upload, takeScreenshot, screenshotMatcher, stopChunkTrace, deleteTracing, and annotateTraces accept browser-supplied file paths without enforcing the allowWrite permission gate or confining paths to the project root. A client that can reach the Browser Mode API can read arbitrary local files, create or overwrite image and trace files, or delete files accessible to the Vitest process even when allowWrite is false. This issue is fixed in versions 3.2.7, 4.1.10, and 5.0.0-beta.6.

Affected products

VendorProductAffectedFixed
vitest-dev vitest < 3.2.7, >= 4.0.0, < 4.1.10, >= 5.0.0-beta.1, < 5.0.0-beta.6 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.224.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @vitest/browser >= 4.0.0, < 4.1.10 4.1.10 GHSA-p63j-vcc4-9vmv
npm @vitest/browser < 3.2.7 3.2.7 GHSA-p63j-vcc4-9vmv
npm @vitest/browser >= 5.0.0-beta.1, < 5.0.0-beta.6 5.0.0-beta.6 GHSA-p63j-vcc4-9vmv

References