| タイトル | Vitestの__screenshot-errorハンドラーにおける任意ファイル読み取りの脆弱性 |
|---|---|
| 概要 | VitestはViteによって動作するテストフレームワークです。ブラウザモードのHTTPサーバー上の「__screenshot-error」ハンドラーは、ファイルシステム上の任意のファイルに対して応答してしまいます。特に、サーバーが「browser.api.host: true」に設定されてネットワーク上に公開されている場合、攻撃者がリモートからこのハンドラーへリクエストを送り、任意のファイルの内容を取得できてしまいます。この「__screenshot-error」ハンドラーはコミット「2d62051」により追加されました。ユーザーが明示的に「browser.api.host: true」でブラウザモードサーバーをネットワークに公開すると、すべてのファイルが漏洩する恐れがあります。この問題はバージョン2.1.9および3.0.4で修正されました。ユーザーはアップグレードすることが推奨されます。この脆弱性に対する既知の回避策は存在しません。 |
| 想定される影響 | 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2025年2月4日0:00 |
| 登録日 | 2026年1月6日10:54 |
| 最終更新日 | 2026年1月6日10:54 |
| CVSS3.0 : 重要 | |
| スコア | 7.5 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Vitest.dev |
| Vitest 2.1.9 未満 |
| Vitest 3.0.0 以上 3.0.4 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年01月06日] 掲載 |
2026年1月6日10:54 |
| 概要 | 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. |
|---|---|
| 公表日 | 2025年2月5日5:15 |
| 登録日 | 2025年2月6日4:01 |
| 最終更新日 | 2025年2月5日5:15 |