Vulnerabilities / CVE-2026-73653

critical

CVE-2026-73653

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

Published Modified CWE 22, 552, 862
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA9.4CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Red Hat9.4CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Trivy's own label is CRITICAL. Rated critical by GHSA, 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.

Affected packages and fixed versions

SourcePackageFixed in
npm::GitHub Security Advisory npm@vitest/browser4.1.10, 3.2.7, 5.0.0-beta.6
chainguardlangfuse-3, langfuse-fips-33.225.7-r6 and 1 more
seal npm::Seal Security Database@seal-security/vitest-sealsec-browser, @vitest/browser2.1.2-sp999, 2.1.8-sp999, 3.0.0-sp999, 3.0.3-sp999
wolfilangfuse-33.225.7-r6
Show all 6 entries from 4 sources
SourcePackageFixed in
npm::GitHub Security Advisory npm@vitest/browser4.1.10, 3.2.7, 5.0.0-beta.6
chainguardlangfuse-33.225.7-r6
chainguardlangfuse-fips-33.224.1-r0
seal npm::Seal Security Database@seal-security/vitest-sealsec-browser2.1.2-sp999, 2.1.8-sp999, 3.0.0-sp999, 3.0.3-sp999
seal npm::Seal Security Database@vitest/browser2.1.2-sp999, 2.1.8-sp999, 3.0.0-sp999, 3.0.3-sp999
wolfilangfuse-33.225.7-r6

References

All 14 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.