| 제목 | 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. PM 08:18 (1 월 ago) |
|---|
| 모더레이션 | 2026. 07. 22. PM 06:08 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 382381 [publint 까지 0.1.4 package-manager Command src/node/pack.js child_process.exec 권한 상승] |
|---|
| 포인트들 | 20 |
|---|