Vitest: Arbitrary file can be read and executed when Vitest UI server is listening
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| vitest-dev | vitest | affected |
|
Configuration 1 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat Hardened Images | |||
| prometheus3-13-main-3.13.1-0.1.hum1 | cpe:/a:redhat:hummingbird:1 | RHSA-2026:39058 | 2026-07-13T00:00:00Z |
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Vitest.dev | Vitest |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-5xrq-8626-4rwp | When Vitest UI server is listening, arbitrary file can be read and executed |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 1.0% (1.028% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat
Redhat hummingbird |
|
| CPEs | cpe:/a:redhat:hummingbird:1 | |
| Vendors & Products |
Redhat
Redhat hummingbird |
|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Vitest.dev
Vitest.dev vitest |
|
| Vendors & Products |
Vitest.dev
Vitest.dev vitest |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Vitest is a testing framework powered by Vite. Prior to 3.2.5 and 4.1.0, the Vitest UI/API server on Windows used isFileServingAllowed incorrectly for /__vitest_attachment__, allowing \\?\\..\\ path traversal to read files outside the project; exposed API write and rerun features such as saveTestFile and rerun could also allow arbitrary script execution. This issue is fixed in versions 3.2.5 and 4.1.0. | |
| Title | Vitest: Arbitrary file can be read and executed when Vitest UI server is listening | |
| Weaknesses | CWE-22 | |
| References |
|
|
| Metrics |
cvssV3_1
|