CVE-2026-73653 Vitest: Browser Mode provider commands bypass the file-access permission gate
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/vitest-dev/vitest/security/advisories/GHSA-p63j-vcc4-9vmv vendor-advisory
- https://github.com/vitest-dev/vitest/pull/10674 patch
- https://github.com/vitest-dev/vitest/pull/10679 patch
- https://github.com/vitest-dev/vitest/pull/10680 patch
- https://github.com/vitest-dev/vitest/commit/33f96a145ef09ca6a43b4e555eb273e64a87be23 patch
- https://github.com/vitest-dev/vitest/commit/5c18dd267ff7f47f24cab2f615a16b37d90feb7f patch
- https://github.com/vitest-dev/vitest/commit/b795e36b34969bec50b47a9f29d26f799a6a04fb patch
- https://github.com/vitest-dev/vitest/releases/tag/v3.2.7
- https://github.com/vitest-dev/vitest/releases/tag/v4.1.10
- https://github.com/vitest-dev/vitest/releases/tag/v5.0.0-beta.6
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2515536 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- github.com product