GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: undici security advisory 9 件を parent>child override で対応 by ymnao · Pull Request #201 · ymnao/scripta

Conversation

@ymnao

@ymnao ymnao commented Jun 19, 2026

Copy link
Copy Markdown
Owner

概要

undici の security advisory 9 件 (Dependabot alert #10-14, #17-20) を parent>child override で解消する。
@electron/get / jsdom 経由の 7.25.0 を ^7.28.0、node-gyp 経由の 6.25.0 を ^6.27.0 に固定。

関連 Issue

  • v0.5.0 milestone (chore: 旧 scripta からユニットテスト 60 ファイルを復元(PR B) #5)

移行 Stage

該当なし(security 対応)

変更内容

  • pnpm-workspace.yaml に 3 件の parent>child override を追加:
    • @electron/get>undici: ^7.28.0
    • jsdom>undici: ^7.28.0
    • node-gyp>undici: ^6.27.0
  • pnpm-lock.yaml を CI=true pnpm install --lockfile-only --no-frozen-lockfile で更新

対象 alert 9 件

# GHSA Severity 6.x/7.x Summary
10 GHSA-pr7r-676h-xcf6 medium 7.x cross-user information disclosure via shared cache whitespace bypass
11 GHSA-vmh5-mc38-953g high 7.x TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent
12 GHSA-35p6-xmwp-9g52 low 6.x HTTP response queue poisoning via keep-alive socket reuse
13 GHSA-35p6-xmwp-9g52 low 7.x 同上
14 GHSA-hm92-r4w5-c3mj high 7.x cross-origin request routing via SOCKS5 proxy pool reuse
17 GHSA-p88m-4jfj-68fv medium 6.x HTTP header injection via Set-Cookie percent-decoding
18 GHSA-p88m-4jfj-68fv medium 7.x 同上
19 GHSA-g8m3-5g58-fq7m low 6.x Set-Cookie SameSite downgrade via permissive substring matching
20 GHSA-g8m3-5g58-fq7m low 7.x 同上

parent 特定

  • @electron/[email protected] (electron の devDep transitive) が optionalDep として undici: 7.25.0
  • [email protected] (Vitest の DOM 環境用 devDep) が undici: 7.25.0
  • [email protected] (@electron/rebuild → electron-builder 経由) が undici: 6.25.0

実害評価

いずれも build / test time の transitive で、本リポの runtime コード(main / preload / renderer)からは undici を直接利用しない。SOCKS5 ProxyAgent / shared HTTP cache / 攻撃者制御の Set-Cookie 等の前提を満たさないが、alert closed 化が目的で patch を適用。

動作確認

  • node_modules/.bin/biome check — pass (Found 2 infos = biome migrate suggestion のみ)
  • node_modules/.bin/tsc --noEmit — pass
  • node_modules/.bin/vitest run — 91 files / 2111 passed, 2 skipped
  • node_modules/.bin/electron-vite build — pass (~520ms)
  • CI (lint / typecheck / test / build / e2e / electron-e2e)
  • merge 後 alert Chore(deps): Bump marked from 18.0.2 to 18.0.3 #10-14, Stage 6: e2e テスト基盤(Playwright + window.api モック)を追加 #17-20 の 9 件すべて auto-close 確認

スクリーンショット

該当なし

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ymnao
chore: undici security advisory 9 件を parent>child override で対応
3cf9254
@electron/get / jsdom 経由の undici 7.25.0 と node-gyp 経由の 6.25.0 を
それぞれ patched 版 (^7.28.0 / ^6.27.0) に固定して open alert を解消する。

対象 alert (9 件):
- #10 GHSA-pr7r-676h-xcf6 (medium) — cross-user info disclosure via shared cache whitespace bypass (7.x)
- #11 GHSA-vmh5-mc38-953g (high)   — TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent (7.x)
- #12 GHSA-35p6-xmwp-9g52 (low)    — HTTP response queue poisoning via keep-alive socket reuse (6.x)
- #13 GHSA-35p6-xmwp-9g52 (low)    — 同上 (7.x)
- #14 GHSA-hm92-r4w5-c3mj (high)   — cross-origin request routing via SOCKS5 proxy pool reuse (7.x)
- #17 GHSA-p88m-4jfj-68fv (medium) — HTTP header injection via Set-Cookie percent-decoding (6.x)
- #18 GHSA-p88m-4jfj-68fv (medium) — 同上 (7.x)
- #19 GHSA-g8m3-5g58-fq7m (low)    — Set-Cookie SameSite downgrade via permissive substring matching (6.x)
- #20 GHSA-g8m3-5g58-fq7m (low)    — 同上 (7.x)

parent 特定:
- `@electron/[email protected]` (electron の devDep transitive) が optionalDep として undici 7.25.0
- `[email protected]` (Vitest の DOM 環境用 devDep) が undici 7.25.0
- `[email protected]` (@electron/rebuild → electron-builder 経由) が undici 6.25.0

実害評価: いずれも build/test time の transitive で本リポ runtime は触らない。
SOCKS5 ProxyAgent / shared cache / 攻撃者制御 Set-Cookie 等の前提を満たさないが、
alert closed 化が目的で patch を適用。
@ymnao ymnao added this to the v0.5.0 milestone Jun 19, 2026
@ymnao

ymnao commented Jun 19, 2026

Copy link
Copy Markdown
Owner Author

CI 全 pass を確認しました (lint / typecheck / test / build / e2e / electron-e2e すべて SUCCESS)。マージしていただけますか?

PR #199 merge により alert #9 (GHSA-cmwh-pvxp-8882) も fixed に遷移済み (現在 open alert は本 PR の対象 undici 9 件のみ)。本 PR merge で alert #10-14 / #17-20 すべて auto-close 想定です。

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ymnao
Merge branch 'main' into chore/undici-security
dce68eb
@ymnao
ymnao merged commit 095af69 into main Jun 19, 2026
6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ymnao
ymnao deleted the chore/undici-security branch June 19, 2026 16:19
@ymnao ymnao mentioned this pull request Jun 24, 2026
chore: v0.5.0 リリース準備 #224
Merged
2 of 3 tasks
ymnao added a commit that referenced this pull request Jun 24, 2026
@ymnao
chore: v0.5.0 リリース準備 (#224)
6126d37
- `CHANGELOG.md` に v0.5.0 セクションを追加
  - Added: #202 → #221 (バックリンクパネル)
  - Fixed: #220 → #222 (タブ切替 undo 履歴消失)
  - Security: #204 → #210 (Electron Tier 1 補完), #205 → #218 (CI スキャン 3 件),
    #223 (codeql-skip stub), #201 (undici 9 件)
  - Internal: #203 → #223 (ADR-0010 MiniSearch Rejected)
  - Dependencies: #199 + #211-#217 → #219 (Dependabot 8 件集約)
- `package.json` の `version` を `0.4.0` → `0.5.0`
- HANDOFF の規約通り、本 commit では `pnpm <script>` を呼ばない
  (lockfile / node_modules には触れない)
@ymnao ymnao mentioned this pull request Sep 26, 2026
chore(deps): 陳腐化した jsdom>undici override を削除し隣接 2 行の floor を追従させる #567
Merged
8 of 15 tasks
ymnao added a commit that referenced this pull request Sep 26, 2026
@ymnao @claude
chore(deps): jsdom>undici override を削除し隣接 2 行の floor を patched 版に追従させる (
c776631
#567)

- [email protected] は undici ^8.10.2 を宣言しているのに override が ^7.28.0 で
  major ダウングレード固定していた (Refs #564)
- 列挙されていた 6 GHSA は 8.x で全件 8.5.0 以下で patched。6 件の外にある
  8.x 影響 advisory (GHSA-4cwx-7wf7-3272 / m8rv / jr45 / v3r7 / 8xcm /
  vxpw / 38rv) を含めても 8.x の floor は 8.9.0 で、jsdom の ^8.10.2 が
  これを上回るため override の仕事は残っていない → 行ごと削除して親の宣言に委ねる
- ^8.10.2 への張り替えは親 range と同値の tautology になり、jsdom が
  undici 9 へ上げたとき今回と同型の陳腐化を再発させる装置になるので採らない
- 隣接 2 行は親 range の内側なので issue の定義では陳腐化していないが、
  floor が現在の patched floor に届いていなかったので追従させた:
  @electron/get>undici ^7.28.0 → ^7.29.0 (GHSA-4cwx-7wf7-3272 high +
  medium 4 件が 7.29.0 patched。いずれも 2026-08-03 公開で、この floor を
  書いた #201 の 2026-06-20 より後)、node-gyp>undici ^6.27.0 → ^6.28.0
  (medium 3 件が 6.28.0 patched)。lockfile は既に 7.29.1 / 6.28.1 なので
  この 2 行では解決は動かない
- あわせて GHSA-vxpw-j846-p89q (high, WebSocket client の fragment count
  bypass DoS) を両行の列挙に追加した。2026-06-19 公開で #201 の時点で既に
  存在したが列挙漏れしていたもので、patched 版は 7.28.0 / 6.27.0 なので
  従来の floor でも閉じており、件数の内訳が不完全だっただけ
- 両行に削除条件を明記した。parent>child override は親の宣言を丸ごと
  置き換えるため、親が undici の major を上げた後も行を残すと #564 と同型の
  major ダウングレード固定になり、audit も静かなままで気付けない
  (削除条件を書く形式は同ファイルの electron-vite>esbuild 行が既に採っている)
- undici の copy は 2 → 3 (6.28.1 / 7.29.1 / 8.11.2) に増えるが、3 つとも
  devDependency 経由で配布 runtime には入らない。dedupe 案 (@electron/get を
  8 系へ寄せる等) は「親の宣言 range 外へ override する」という今回直している
  不具合そのものの再生産なので採らない
- lockfile の [email protected] snapshot が optional: true になったのは、hard dep
  だった jsdom が参照元から外れ、@electron/get の optionalDependencies だけが
  残ったため

undici 8.11.2 の engines.node は >=22.19.0 で CI の Node pin (22.13) を
上回る。ただし engines が 22.13 を満たさない package は main 時点で既に 6 件
あり (jsdom / @asamuzakjp/css-color / @asamuzakjp/dom-selector /
w3c-xmlserializer / whatwg-url / write-file-atomic)、undici はその 7 件目に
なるだけで要求 floor は上がらない。最大 floor は jsdom 他の 22.22.2 で
undici の 22.19.0 より高いため。pnpm は engines を strict に見ていない
(engineStrict 未設定・.npmrc 無し) ので install/test は通るが、ローカル検証は
Node v22.23.2 で行っており CI の 22.13 を踏んでいないので、CI green を
merge 条件とする。

Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

v0.5.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ymnao
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.