Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Network-reachable API with no auth or interaction (AV:N/PR:N/UI:N); arbitrary file read gives C:H, create/overwrite/delete gives I:H, and file deletion yields limited A:L.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Lifecycle Timeline
4Blast Radius
ecosystem impact- 3 npm packages depend on @vitest/browser (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 4.0.0.
DescriptionCVE.org
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.
AnalysisAI
Path traversal in Vitest Browser Mode (@vitest/browser) lets any client reachable via the Browser Mode API read, create, overwrite, or delete arbitrary files on the host running the test process, bypassing the allowWrite permission gate entirely. Affected are Vitest before 3.2.7, 4.x before 4.1.10, and the 5.0.0-beta line before 5.0.0-beta.6, where provider commands (upload, takeScreenshot, screenshotMatcher, stopChunkTrace, deleteTracing, annotateTraces) accept browser-supplied paths without confining them to the project root. …
Unlock full vulnerability intelligence
- Risk assessment & exploitation conditions
- Attack chain visualization
- Remediation with exact patch versions
- Threat intelligence from 22 sources
- Personal watchlist & email alerts
Free forever · No credit card required
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata
Vulnerability AssessmentAI
| Exploitation | Exploitation requires network reachability to the Browser Mode API - specifically a non-default configuration where test.api.host is set or the Vite dev server is otherwise reachable from another machine or origin (the localhost-only default leaves no untrusted party in position). … Additional conditions and limiting factors are described in the full assessment. |
| Risk Assessment | The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L, base 9.4) portrays a network, unauthenticated, no-interaction attack with high confidentiality/integrity impact - a critical rating. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in. |
| Exploit Scenario | An attacker who can reach a network-exposed Vitest Browser Mode server (for example a CI runner or a dev machine where test.api.host has been set) sends a provider command such as upload referencing /etc/passwd or a CI secrets file; the Node side reads the file and loads its contents into the page where the attacker's test code exfiltrates it. The same access allows overwriting or deleting arbitrary files via takeScreenshot/stopChunkTrace/deleteTracing. … |
| Remediation | Vendor-released patch: upgrade @vitest/browser to 3.2.7, 4.1.10, or 5.0.0-beta.6 depending on your major line, per the GHSA advisory (https://github.com/vitest-dev/vitest/security/advisories/GHSA-p63j-vcc4-9vmv) and the fix PRs https://github.com/vitest-dev/vitest/pull/10674 and https://github.com/vitest-dev/vitest/pull/10679. … Detailed patch versions, workarounds, and compensating controls in full report. |
Recommended ActionAI
Within 24 hours: Conduct immediate inventory of all Vitest deployments, identify instances using Browser Mode, and note current versions against vulnerability windows (before 3.2.7, 4.0.0-4.1.9, or 5.0.0-beta-5). …
Sign in for detailed remediation steps and compensating controls.
Threat intelligence, references, and detailed analysis are available after sign-in.
Vitest is a testing framework powered by Vite. Rated critical severity (CVSS 9.6), this vulnerability is remotely exploi
Vitest is a testing framework powered by Vite. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploita
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-58197
GHSA-p63j-vcc4-9vmv