| タイトル | Node.js @publint/pack 0.1.4 OS Command Injection |
|---|
| 説明 | @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 }) |
|---|
| ソース | ⚠️ https://github.com/publint/publint/issues/236 |
|---|
| ユーザー | wjm2 (UID 99050) |
|---|
| 送信 | 2026年06月16日 20:18 (2 月 ago) |
|---|
| モデレーション | 2026年07月22日 18:08 (1 month later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 382381 [publint 迄 0.1.4 package-manager Command src/node/pack.js child_process.exec 特権昇格] |
|---|
| ポイント | 20 |
|---|