AI description
CVE-2026-47429 describes a path traversal vulnerability affecting the Vitest UI server. This flaw arises from the incorrect use of the `isFileServingAllowed` function within the API handler for the `/__vitest_attachment__` endpoint, particularly on Windows systems. Attackers can manipulate the `path` parameter to bypass security checks, allowing them to read arbitrary files from the server's filesystem. Beyond arbitrary file reading, the vulnerability extends to arbitrary file write and delete operations through functions like `writeFile`, `removeFile`, and `saveSnapshotFile`. This can ultimately lead to remote code execution when the Vitest UI server is exposed to the network. Mitigations include improved path validation and the introduction of new configuration flags, `allowWrite` and `allowExec`, which are disabled by default when the API server is bound to a non-localhost host.
- 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.
- Source
- security-advisories@github.com
- NVD status
- Awaiting Analysis
CVSS 3.1
- Type
- Secondary
- Base score
- 9.8
- Impact score
- 5.9
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity
- CRITICAL
- security-advisories@github.com
- CWE-22
- Hype score
- Not currently trending
JavaScript テストフレームワーク Vitestに重大な脆弱性(VE-2026-47428,CVE-2026-47429,CVE未採番) https://t.co/BCxLd7cJ3N #セキュリティ対策Lab #security #securitynews
@securityLab_jp
7 Jun 2026
146 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
Vitestに重大(Critical)な脆弱性。CVE-2026-47428はCVSSスコア9.8の反射型スクリプトインジェクションで、ブラウザ入力がインラインモジュールスクリプト内に直接レンダリングしてしまうことでの任意コード実行。Win
@__kokumoto
5 Jun 2026
1100 Impressions
2 Retweets
1 Like
0 Bookmarks
0 Replies
0 Quotes