Skip to main content
VulnerabilityPublished Updated

CVE-2026-73653: @vitest/browser · Browser Mode provider commands bypass the file-access permission gate

Affects @vitest/browserSource GCVE Database

0

Mentioned vulnerabilities

CVSS 9.4 Critical : upgrade to 5.0.0-beta.6 as a priority.

Data as of 26 Oct 2026, 16:10 UTC

CVSS 3.1 base score
9.4Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 5.0.0-beta.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

What to do

Upgrade @vitest/browser to 5.0.0-beta.6.

Affected software

ProductAffectedFixed in
npm@vitest/browserAffected
  • >=5.0.0-beta.1 <5.0.0-beta.6
Fixed in
  • 5.0.0-beta.6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The planned fix adds allowWrite permission checks for write and delete operations and confines file paths to the project root, rejecting absolute paths and directory traversal. If you cannot patch yet, avoid exposing the Browser Mode API to untrusted networks or clients, and do not rely solely on allowWrite: false for security containment.

Description

A vulnerability in @vitest/browser's Browser Mode allows certain built-in commands to bypass the file-access permission gate. These commands can read, write, or delete files anywhere accessible by the Vitest process, ignoring the allowWrite flag and path confinement. This is particularly risky when the Browser Mode API is exposed beyond localhost, enabling arbitrary file read and modification by untrusted clients. The vulnerability affects versions >=4.0.0 <4.1.10 and <3.2.7. A fix is planned to enforce allowWrite checks and restrict paths to the project root.

References

Community reviews

Loading reviews…