Home / vitest-dev / vitest / CVE-2025-24963
CVE-2025-24963: is it exploited, and which versions of vitest-dev vitest are affected and fixed?
CVE-2025-24963 is a path traversal (reading or writing files outside the intended folder) vulnerability in vitest-dev vitest. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: @vitest/browser from 2.0.4 before 2.1.9 and @vitest/browser from 3.0.0 before 3.0.4 (GitHub advisory GHSA-8gvc-j273-4wm5). Fixed in 2.1.9 and 3.0.4 (GitHub advisory GHSA-8gvc-j273-4wm5). Severity: Medium (5.9, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:23 UTC.
What is CVE-2025-24963?
Browser mode serves arbitrary files in vitest
Vitest is a testing framework powered by Vite. The `__screenshot-error` handler on the browser mode HTTP server that responds any file on the file system. Especially if the server is exposed on the network by `browser.api.host: true`, an attacker can send a request to that handler from remote to get the content of arbitrary files.This `__screenshot-error` handler on the browser mode HTTP server responds any file on the file system. This code was added by commit `2d62051`. Users explicitly exposing the browser mode server to the network by `browser.api.host: true` may get any files exposed. This issue has been addressed in versions 2.1.9 and 3.0.4. Users are advised to upgrade. There are no known workarounds for this vulnerability.
From the CVE record by GitHub_M, last updated February 12, 2025, 20:51 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| vitest-dev | vitest | >= 2.0.4, < 2.1.9 >= 3.0.0, < 3.0.4 |
As the CVE record by GitHub_M states it, last updated February 12, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | @vitest/browser | >= 2.0.4, < 2.1.9 | 2.1.9 | GHSA-8gvc-j273-4wm5 |
| npm | @vitest/browser | >= 3.0.0, < 3.0.4 | 3.0.4 | GHSA-8gvc-j273-4wm5 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 4, 2025. Summary: Vitest browser mode serves arbitrary files.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| vitest.dev | vitest | before 2.1.9 | application |
| vitest.dev | vitest | from 3.0.0 before 3.0.4 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 08:59 UTC.
How severe is CVE-2025-24963?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-24963 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, February 4, 2025)
- EPSS
- 2.35% probability of exploitation activity in the next 30 days, percentile 84.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- https://github.com/vitest-dev/vitest/security/advisories/GHSA-8gvc-j273-4wm5 x_refsource_CONFIRM
- https://github.com/vitest-dev/vitest/commit/2d62051f13b4b0939b2f7e94e88006d830dc4d1f x_refsource_MISC
- https://github.com/vitest-dev/vitest/blob/f17918a79969d27a415f70431e08a9445b051e45/packages/browser/src/node/plugin.ts#L88-L130 x_refsource_MISC
- https://vitest.dev/guide/browser/config.html#browser-api x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 29, 2025
- Published
- February 4, 2025, 19:36 UTC
- CVE record updated
- February 12, 2025, 20:51 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 08:59 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect vitest?
- Oct 20, 2026CVE-2026-112950 vitest-dev vitest: path traversal (reading or writing files outside the intended folder)
- Oct 20, 2026CVE-2026-112949 vitest-dev vitest: code injection (remote code execution)
- Oct 20, 2026CVE-2026-112948 vitest-dev vitest: information disclosure
- Sep 1, 2026CVE-2026-84373 vitest-dev vitest: path traversal (reading or writing files outside the intended folder)
- Aug 13, 2026CVE-2026-73653 vitest-dev vitest: path traversal (reading or writing files outside the intended folder)
- Jul 14, 2026CVE-2026-53633 vitest-dev vitest: exposed Dangerous Method or Function
- Jul 14, 2026CVE-2026-47428 vitest-dev vitest: cross-site scripting (XSS)
- Jul 14, 2026CVE-2026-47429 vitest-dev vitest: path traversal (reading or writing files outside the intended folder)
Questions about CVE-2025-24963
Is CVE-2025-24963 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 2.35% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of vitest-dev vitest are affected by CVE-2025-24963?
@vitest/browser from 2.0.4 before 2.1.9 and @vitest/browser from 3.0.0 before 3.0.4, per the GitHub advisory GHSA-8gvc-j273-4wm5. The tables above give every range the sources list.
Which version fixes CVE-2025-24963?
2.1.9 and 3.0.4, per the GitHub advisory GHSA-8gvc-j273-4wm5. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-24963?
Medium (5.9, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-24963?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.