launch-editor Windows環境で環境変数経由の任意コマンドが実行される恐れ
Summary
launch-editor は、Windows で cmd に引数を渡す際に % がエスケープされない問題があり、悪意のある値を持つ環境変数によって任意の内容が実行される恐れがあります。影響を受けるのは 2.14.2 より前の launch-editor で、Vite 6.4.4 より前や vite-plus 1.1.0 より前も対象です。launch-editor を 2.14.2 以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
launch-editor は、Windows で cmd に引数を渡す際に % がエスケープされない問題があり、悪意のある値を持つ環境変数によって任意の内容が実行される恐れがあります。影響を受けるのは 2.14.2 より前の launch-editor で、Vite 6.4.4 より前や vite-plus 1.1.0 より前も対象です。launch-editor を 2.14.2 以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmlaunch-editor |
< 2.14.2→ 2.14.2 |
2.14.2 |
| npmvite |
< 6.4.4→ 6.4.4 |
6.4.4 |
| npmvite-plus |
< 1.1.0→ 1.1.0 |
1.1.0 |
Original description The description as published by the source.
launch-editor allows users to open files with line numbers in editor from Node.js. Prior to 2.14.2, launch-editor did not escape % on Windows when passing an argument to cmd. When an environment variable contained a malicious value, it was possible that that content to be executed. This vulnerability is fixed in 2.14.2.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com