Skip to content

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

CriticalCVSS 9.4 EPSS 0.79%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
Red Hat

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.

Upgrade path

3 packages: 1 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
redhat/rh-podman-desktop.git(Red Hat podman_desktop 1) All versions No fix listed No fix yet
@vitest browser(npm) < 3.2.7; >= 4.0.0, < 4.1.10; >= 5.0.0-beta.1, < 5.0.0-beta.6 3.2.7, 4.1.10, 5.0.0-beta.6 Fixed
vitest-dev vitest = < 3.2.7; = >= 4.0.0, < 4.1.10; = >= 5.0.0-beta.1, < 5.0.0-beta.6 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
vitest-dev vitest = < 3.2.7 No fix listed
vitest-dev vitest = >= 4.0.0, < 4.1.10 No fix listed
vitest-dev vitest = >= 5.0.0-beta.1, < 5.0.0-beta.6 No fix listed
redhat/rh-podman-desktop.git(Red Hat:podman_desktop:1) All versions No fix listed
@vitest browser(npm) >= 4.0.0, < 4.1.10 4.1.10
@vitest browser(npm) < 3.2.7 3.2.7
@vitest browser(npm) >= 5.0.0-beta.1, < 5.0.0-beta.6 5.0.0-beta.6

References