Skip to content

fix: undici / source-map-js を脆弱性修正版へ更新(v0.78.4) - #177

Merged
okash1n merged 2 commits into
mainfrom
fix/wce-undici-source-map-js
Oct 6, 2026
Merged

okash1n merged 2 commits into
mainfrom
fix/wce-undici-source-map-js

Conversation

@okash1n

@okash1n okash1n commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

概要

web-content-extraction skill の package-lock.json が固定している undici と source-map-js を脆弱性修正版へ更新し、オープン中の Dependabot アラート 21 件(#27〜#47)を解消します(v0.78.4、patch)。

この PR は #176 の上に積んでいます。#176 のマージ後、差分は本 PR 分(8 ファイル)だけになります。

内容

  • 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 件)
  • MDM runtime bundle の期待 lock SHA-256 ピン(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 ハッシュは変わらない
  • 詳細(advisory の一覧、既存インストールへの取り込み範囲、手動更新手順)は CHANGELOG の [0.78.4] を参照

ユーザーに見える変更

  • fresh install と、web-content-update フックが依存を一度も更新していないインストールは、更新で新しい lockfile に置き換わり npm ci で node_modules も入れ直される
  • フックが一度でも依存を更新したインストールでは lockfile が runtime 所有として保持されるため、キットの更新では変わらない。cd ~/.claude/skills/web-content-extraction && npm update undici source-map-js で手動更新できる
  • MDM 配布環境は新しいバンドルパス(711c13b0…-09fe234e…)で runtime bundle を再ビルド・再配布する必要がある(v0.75.2 / v0.78.1 と同じ経路)

リスク

  • undici が minor 更新(8.10 → 8.11、7.29 → 7.30)になる。skill のテストと実 URL 取得は通ったが、プロキシ環境などの挙動差は未検証
  • advisory が skill の実行経路に該当しないという判断は、advisory 本文と skill スクリプトの読解に基づく(undici / jsdom 内部の呼び出し経路までは追っていない)
  • マージ後にアラート refactor: i18n cleanup + brew 一元化 + v0.30.0 CHANGELOG (v0.30.0) #27〜fix: PR作成hookのif/async適用を限定化 #47 が自動で fixed になること、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-js
  • git 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 すべて
  • レビュー(正しさ / Codex): 指摘なし
  • 全体スイートはローカル未実行。CI を正とする

Copilot AI balanced review requested due to automatic review settings October 6, 2026 21:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T23:12:02.078234Z 6b185e1 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 uninstall flow.
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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread uninstall.sh
Comment on lines +1844 to +1845
if [[ "$_IS_MSYS" == "true" ]]; then
[[ -f "$launcher" && ! -L "$launcher" ]] || return 2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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
@okash1n
okash1n force-pushed the fix/wce-undici-source-map-js branch from c2dd363 to 6b185e1 Compare October 6, 2026 23:08
@okash1n
okash1n merged commit 0874485 into main Oct 6, 2026
13 checks passed
@okash1n
okash1n deleted the fix/wce-undici-source-map-js branch October 7, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants