CVE-2026-47429
MEDIUM 5.9CVSS 3.1When Vitest UI server is listening, arbitrary file can be read and executed
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.
- Published
- 14 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-862
- Also known as
- GHSA-5xrq-8626-4rwp
- Sources
- NVDJSONOSV GHSA-5xrq-8626-4rwpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vitest.dev | vitestcpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:* |
< 3.2.5 | 3.2.5 |
| NVD | vitest.dev | vitestcpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:* |
>= 4.0.0, < 4.1.0 | 4.1.0 |
| OSV | npm | vitest | >= 4.0.0, < 4.1.0 | 4.1.0 |
| OSV | npm | vitest | < 3.2.6 | 3.2.6 |
References
- https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d · Patch, WEB
- https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8 · Patch, WEB
- https://github.com/vitest-dev/vitest/pull/10445 · Exploit, Issue Tracking, Patch, WEB
- https://github.com/vitest-dev/vitest/pull/9350 · Exploit, Issue Tracking, Patch, WEB
- https://github.com/vitest-dev/vitest/releases/tag/v3.2.5 · Release Notes, WEB
- https://github.com/vitest-dev/vitest/releases/tag/v4.1.0 · Release Notes, WEB
- https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-47429 · ADVISORY
- https://github.com/vitest-dev/vitest · PACKAGE
- https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/commands/fs.ts#L10-L11 · WEB
- https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/plugin.ts#L194-L196 · WEB
- https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/browser/src/node/rpc.ts#L115-L121 · WEB
- https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/ui/node/index.ts#L77 · WEB
- https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/vitest/src/api/setup.ts#L103-L105 · WEB
- https://github.com/vitest-dev/vitest/blob/eb1abf08573032a532015b999ad3501c5e89e3bb/packages/vitest/src/api/setup.ts#L119-L121 · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 14 Jul 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 1 Jun 2026)