Gửi #860239: Node.js @publint/pack 0.1.4 OS Command Injectionthông tin

tiêu đềNode.js @publint/pack 0.1.4 OS Command Injection
Mô tả@publint/pack constructs package-manager commands as shell strings and executes them with child_process.exec(). The documented destination option is interpolated directly into the shell command. Because the command is executed by a shell, command substitution in the destination path is evaluated. Tested version: @publint/pack 0.1.4 Public API used: import { pack } from '@publint/pack' Relevant code path: // src/node/pack.js let command = `${packageManager} pack` // ... command += ` --pack-destination \"${packDestination}\"` const output = await util.promisify(cp.exec)(command, { cwd: dir })
Nguồn⚠️ https://github.com/publint/publint/issues/236
Người dùng
 wjm2 (UID 99050)
Đệ trình16/06/2026 20:18 (cách đây 1 tháng)
Kiểm duyệt22/07/2026 18:08 (1 month later)
Trạng tháiđược chấp nhận
Mục VulDB382381 [publint đến 0.1.4 package-manager Command src/node/pack.js child_process.exec nâng cao đặc quyền]
điểm20

Might our Artificial Intelligence support you?

Check our Alexa App!