cve.bz

CVE-2026-73653 vitest-dev vitest: Path traversal

9.4 criticalEPSS 0.8%Fix available

Critical (9.4) in vitest-dev vitest. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in @vitest/browser 3.2.7, 4.1.10, 5.0.0-beta.6.

On this page
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.

Severity

CVSS 3.1

9.4 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-08-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-552 Files or Directories Accessible to External Parties
CWE-862 Missing Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • @vitest/browser (npm): fixed in 4.1.10, 3.2.7, 5.0.0-beta.6

Ask an AI about this CVE

Show the promptExplain CVE-2026-73653 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-73653?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-73653?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-73653 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-p63j-vcc4-9vmvnpm@vitest/browser>=4.0.0 <4.1.104.1.10
GHSA-p63j-vcc4-9vmvnpm@vitest/browser<3.2.73.2.7
GHSA-p63j-vcc4-9vmvnpm@vitest/browser>=5.0.0-beta.1 <5.0.0-beta.65.0.0-beta.6

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This vulnerability is rated as having Critical impact because unauthenticated network actors can exploit the exposed Browser Mode interface to bypass file-access safeguards, enabling unauthorized reading, deletion, or creation of system files with the permissions of the running process. In Red Hat environments, Vitest is utilized as a build and test framework rather than an exposed production service, meaning typical deployments do not listen on external network ports. Potential exploitation is therefore restricted to scenarios where the testing server is deliberately exposed over a network or used to evaluate untrusted codebases.

Red Hat's mitigation

Making Browser Mode API unreachable outside of local machine by making it listen only on localhost.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7amq-broker-bin.zipNot affected
Red Hat AMQ Broker 7amq-broker-maven-repository.zipNot affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/gateway-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/gateway-rhel9Not affected
Red Hat Ansible Automation Platform 2automation-gatewayNot affected
Red Hat Ansible Automation Platform 2automation-platform-uiNot affected
Red Hat Build of Keycloakkeycloak-operator.redhat-00001.zipNot affected
Red Hat Build of Keycloakrhbk-quarkus-dist.zipNot affected
Red Hat Build of Podman Desktoprh-podman-desktop.gitAffected
Red Hat Hardened Imagesgrafana13.2Not affected
Red Hat Hardened ImagesjaegerNot affected
Red Hat Hardened Imagesopentelemetry-collectorNot affected
Red Hat Hardened Imagesopentelemetry-collector-contribNot affected
Red Hat Hardened Imagesopentelemetry-collector-k8sNot affected
Red Hat Hardened Imagesprometheus3.13Not affected
Red Hat JBoss Enterprise Application Platform 8jboss-eap.1-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform 8jboss-eap-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap.1-runtime-maven-repository.zipNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packjboss-eap-runtime-maven-repository.zipNot affected
Red Hat Trusted Artifact Signerrhtas/rhtas-console-ui-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-73653.

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High
  • CAPEC-150 Collect Data from Common Resource Locations Severity: Medium
  • CAPEC-639 Probe System Files Severity: Medium
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON