| tiêu đề | Node.js @umijs/utils 4.6.63 OS Command Injection |
|---|
| Mô tả | @umijs/utils exposes git helper functions through the package's top-level export:
const { git } = require("@umijs/utils");
The exported git.getFileCreateInfo() and git.getFileLastModifyInfo() functions pass a user-controlled filePath argument to cross-spawn while setting shell: true. With shell: true, Node/cross-spawn concatenates arguments into a shell command, so shell metacharacters in filePath are interpreted by the shell.
This allows command injection when these helpers are called with an untrusted or attacker-controlled file path.
|
|---|
| Nguồn | ⚠️ https://github.com/umijs/umi/issues/13345 |
|---|
| Người dùng | wjm2 (UID 99050) |
|---|
| Đệ trình | 16/06/2026 16:33 (cách đây 1 tháng) |
|---|
| Kiểm duyệt | 21/07/2026 18:05 (1 month later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 380948 [umijs umi đến 4.6.63 GIT File Helper getFileGitIno.ts git.getFileCreateInfo nâng cao đặc quyền] |
|---|
| điểm | 20 |
|---|