GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — chore: undici security advisory 9 件を parent>child override で対応 by ymnao · Pull Request #201 · ymnao/scripta Conversation
Owner
概要undici の security advisory 9 件 (Dependabot alert #10-14, #17-20) を 関連 Issue
移行 Stage該当なし(security 対応) 変更内容
対象 alert 9 件
parent 特定
実害評価いずれも build / test time の transitive で、本リポの runtime コード(main / preload / renderer)からは undici を直接利用しない。SOCKS5 ProxyAgent / shared HTTP cache / 攻撃者制御の Set-Cookie 等の前提を満たさないが、alert closed 化が目的で patch を適用。 動作確認
スクリーンショット該当なし
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions@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 を適用。
Owner
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
ymnao
added a commit
that referenced
this pull request
- `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 には触れない)
8 of 15 tasks
ymnao
added a commit
that referenced
this pull request
#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
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |