脆弱性データベースGHSA-2cp5-h2w9-phhf

GHSA-2cp5-h2w9-phhf: 
JavaScript 脆弱性分析と緩和策

Summary

hooks/universal/pre-tool/client-boundary.sh (shipped in the npm package and copied into consumer projects by the analyzer install step) has three weaknesses:

  1. Shell command injection (CWE-78). Line 66 runs allowed_expanded=$(eval echo "$allowed") on every non-comment line of $PROJECT_ROOT/.workflow/client/path-allowlist.txt. That file lives in the project being worked on, so a cloned repository that ships it can run shell code when the hook checks a path outside the project root. Reachable only when an operator wires the hook with a path argument.
  2. Boundary bypass (CWE-22). Line 47 is a bare string-prefix match: $ROOT-sibling/x and $ROOT/../x are treated as inside the project root.
  3. Fail-open wiring. The script reads the path from $1 and never reads the PreToolUse JSON on stdin, so under standard Claude Code wiring the path is empty, resolves to $PROJECT_ROOT/ and the hook exits 0 for every call. docs/HOOKS.md:17 and docs/PLAYBOOK.md:85 claim it blocks access outside the project root. Line 92 also interpolates the raw path into a JSON event line without escaping.

Fix

  • Replace the eval with a literal $HOME / ~ prefix expansion; never evaluate allowlist text.
  • Read tool_input.file_path from stdin JSON, canonicalise with realpath -m, and compare against $ROOT/ with a trailing separator.
  • Escape the event JSON (or build it with node/jq).
  • Tests for each case; correct the docs. Found by a static self-audit of the published tarball.

ソース: NVD

関連 JavaScript 脆弱性:

CVE ID

重大度

スコア

テクノロジー

コンポーネント名

CISA KEVのエクスプロイト

修正あり

出版日

CVE-2026-111770HIGH7.7
  • JavaScript logoJavaScript
  • @modelcontextprotocol/server
いいえはいNov 05, 2026
CVE-2026-111769MEDIUM6.5
  • JavaScript logoJavaScript
  • claude-agent-acp
いいえはいNov 05, 2026
GHSA-mrvp-qgq4-c66gMEDIUM4.2
  • JavaScript logoJavaScript
  • cve-lite-cli
いいえはいNov 06, 2026
GHSA-h7pf-67p2-535fMEDIUM該当なし
  • JavaScript logoJavaScript
  • @miltonadina/devops
いいえはいNov 06, 2026
GHSA-2cp5-h2w9-phhfMEDIUM該当なし
  • JavaScript logoJavaScript
  • @miltonadina/devops
いいえはいNov 06, 2026

無料脆弱性評価

クラウドセキュリティの姿勢をベンチマークしましょう

9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。

評価のリクエスト

Wizのその他のリソース

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者