Repository navigation
fix: undici / source-map-js を脆弱性修正版へ更新(v0.78.4) - #177
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
Dependency updates, MDM hash pins, documentation, and regression coverage are consistent.
Review effort: Balanced
Findings: None
What changed in this PR
Updates vulnerable undici and source-map-js dependencies for v0.78.4. The stacked diff also includes PR #176’s CLI uninstall fix.
Changes:
- Updates the vulnerable lockfile entries.
- Synchronizes MDM runtime hashes, documentation, and tests.
- Safely replaces the unsupported
claude uninstallflow.
| File | Description |
|---|---|
skills/web-content-extraction/package-lock.json |
Updates dependency resolutions. |
lib/deploy.sh |
Updates the MDM lock hash. |
mdm/detect-mdm.sh |
Updates runtime validation paths and hashes. |
mdm/install-mdm.sh |
Updates the expected lock hash. |
docs/mdm/README.md |
Documents the new runtime bundle. |
tests/unit/test-mdm-detect.sh |
Updates MDM hash expectations. |
tests/unit/test-web-content-extraction.sh |
Updates the expected Undici version. |
CHANGELOG.md |
Documents v0.78.4 and stacked v0.78.3 changes. |
uninstall.sh |
Implements safe CLI removal. |
tests/unit/test-uninstall.sh |
Adds CLI-removal regression coverage. |
tests/unit/test-codex-setup.sh |
Guards supported CLI subcommands. |
README.md |
Documents CLI uninstall behavior. |
README.en.md |
Adds corresponding English documentation. |
Files not reviewed (1)
- skills/web-content-extraction/package-lock.json: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c2dd363d1b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if [[ "$_IS_MSYS" == "true" ]]; then | ||
| [[ -f "$launcher" && ! -L "$launcher" ]] || return 2 |
There was a problem hiding this comment.
Reject unverified regular Git Bash launchers
If a Git Bash user has a custom regular file at %USERPROFILE%\.local\bin\claude.exe and any real %USERPROFILE%\.local\share\claude directory, this branch classifies it as a native installation without validating the executable or version-store layout. Accepting the CLI-removal prompt then deletes both the custom launcher and the entire data directory, despite the documented promise to leave custom launchers untouched; require evidence that this is the native installer layout or fall back to the manual instructions.
AGENTS.md reference: AGENTS.md:L7-L7
Useful? React with 👍 / 👎.
web-content-extraction skill の lockfile を更新し、Dependabot alert lockfile に対して報告する source-map-js(GHSA-68fv-2mgg-jv7q、High)も 同時に解消する。 - undici: 直接依存 8.10.0 → 8.11.2(^8.10.0 範囲内)、jsdom@29.1.1 経由 7.29.0 → 7.30.0(^7.25.0 範囲内)。修正境界は 8.10.2 / 7.29.1 - source-map-js: jsdom → css-tree@3.2.1 経由 1.2.1 → 1.2.2(^1.2.1 範囲内) - いずれも既存の範囲内なので lockfile のみ更新、package.json は変更なし - 本 skill が undici から使うのは Agent と fetch だけで、advisory が対象と する interceptor・RetryHandler・WebSocket / WebSocketStream・BalancedPool は呼び出していない。攻撃者由来の任意 URL を取得する HTTP 層なので修正版 へ上げる - lockfile の SHA-256 は MDM の root-owned runtime bundle 契約として lib/deploy.sh・mdm/detect-mdm.sh・mdm/install-mdm.sh・docs/mdm/README.md・ tests/unit/test-mdm-detect.sh に固定されているため、期待 lock ハッシュを 09fe234e… へ同期した(#156 / #171 と同じ経路)。MDM 配布環境は新しい バンドルパスで runtime bundle の再ビルド・再配布が必要 - tests/unit/test-web-content-extraction.sh の bundle フィクスチャの undici 版数を 8.11.2 に合わせた - web-content-update フックが一度でも依存を更新した既存インストールでは lockfile の .packages が runtime 所有として保持され、setup.sh --update では更新されない。手動更新手順(npm update undici source-map-js)を CHANGELOG に明記 ローカル確認: npm audit 0 件(更新前は high 2 件)、npm ci 後の skill テスト 47 件 pass(Node.js 24.18.0 / 22.23.2)、test-mdm-wce-runtime.sh 26/26、 test-mdm-detect.sh 342 pass / 1 skip、test-web-content-extraction.sh ほか 2 ファイル 111/111、変更した .sh の shellcheck -S warning
c2dd363 to
6b185e1
Compare
概要
web-content-extractionskill のpackage-lock.jsonが固定しているundiciとsource-map-jsを脆弱性修正版へ更新し、オープン中の Dependabot アラート 21 件(#27〜#47)を解消します(v0.78.4、patch)。内容
undici: 直接依存 8.10.0 → 8.11.2、jsdom@29.1.1経由 7.29.0 → 7.30.0(修正境界は 8.10.2 / 7.29.1、いずれもpackage.jsonの範囲内で lockfile のみ更新)。アラート 21 件が指す advisory 11 種を解消source-map-js:jsdom→css-tree経由 1.2.1 → 1.2.2。GHSA-68fv-2mgg-jv7q(High)を解消。Dependabot アラートは未発行だがnpm auditが報告するため、lockfile 更新と MDM runtime bundle の再配布を 1 回で済ませるよう同じリリースに含めたnpm auditは 0 件(更新前は high 2 件)lib/deploy.sh、mdm/detect-mdm.sh、mdm/install-mdm.sh、docs/mdm/README.md、tests/unit/test-mdm-detect.sh)を09fe234e…へ同期。package.jsonは不変のため package ハッシュは変わらない[0.78.4]を参照ユーザーに見える変更
web-content-updateフックが依存を一度も更新していないインストールは、更新で新しい lockfile に置き換わりnpm ciでnode_modulesも入れ直されるcd ~/.claude/skills/web-content-extraction && npm update undici source-map-jsで手動更新できる711c13b0…-09fe234e…)で runtime bundle を再ビルド・再配布する必要がある(v0.75.2 / v0.78.1 と同じ経路)リスク
undiciが minor 更新(8.10 → 8.11、7.29 → 7.30)になる。skill のテストと実 URL 取得は通ったが、プロキシ環境などの挙動差は未検証undici/jsdom内部の呼び出し経路までは追っていない)source-map-jsのアラートが新規発行されないことは、マージ後に確認する実行した検査
npm update undici source-map-js --package-lock-only --ignore-scripts --no-audit --no-fund(Node 24.18.0 / npm 11.16.0、MDM 固定ツールチェーンと同じ): 差分は 3 エントリ 9 行、package.json不変npm ci --ignore-scripts/npm audit(0 件)/npm test(47 件 PASS、Node 24.18.0 と 22.23.2)/npm ls undici source-map-jsgit grep -n ddace3fbの残りは CHANGELOG の 0.78.1 エントリ 1 行だけtests/unit/test-mdm-detect.sh、test-mdm-wce-runtime.sh、test-web-content-extraction.shを単体で実行: 全件 PASS。ピン未同期の状態ではtest-mdm-wce-runtime.shとtest-web-content-extraction.shが FAIL することを確認shellcheck -S warning: 変更した .sh すべて