Repository navigation
fix(deps): backport Undici security update for 2026.6.35 - #141583
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:
Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed. To remove lockfile changes, restore them from the target branch: git fetch origin
git checkout 'origin/extended-stable/2026.6.33' -- 'extensions/discord/npm-shrinkwrap.json' 'npm-shrinkwrap.json' 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
|
Codex review: blocked before merge. Reviewed September 7, 2026, 6:44 PM ET / 22:44 UTC. ClawSweeper reviewWhat this changesUpdates the release candidate’s Undici HTTP dependencies and normalizes trailing-dot proxy exclusions so direct requests retain DNS checks. Merge readiness⛔ Blocked before merge - 3 items remain This remains a necessary extended-stable security backport despite the equivalent repair on main. No introduced correctness defect was found; maintainer authorship and the protected label also exclude automatic closure. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s shared network layer uses request URLs and proxy environment settings to choose direct or proxied HTTP connections. Its proxy-exclusion decision determines whether guarded requests must resolve and validate destination addresses locally. flowchart TD
A[Request URL] --> C[Proxy eligibility check]
B[Proxy settings and exclusions] --> C
C -->|Excluded or no proxy| D[Local DNS and address checks]
C -->|Trusted proxy eligible| E[Hostname checks and proxy dispatcher]
D --> F[Pinned direct connection]
E --> G[Proxy resolves destination]
Decision needed
Why: The dependency guard requires explicit authorization for this head; model review cannot grant it, and the exact-version matcher inspection limitation remains visible. Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +17, Docs +1, Config +3, Other 0. Total +26 across 12 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the bounded backport with aligned dependency locks and shared DNS-safe proxy matching, subject to the repository’s explicit dependency authorization. Do we have a high-confidence way to reproduce the issue? Yes, for the candidate’s dependency-policy failure: the pinned base resolves an advisory-affected Undici version, and the captured release validation reports that blocker. This review did not execute a runtime exploit or establish a current-main failure. Is this the best way to solve the issue? Yes at the implementation boundary: upgrading the existing dependency families and adapting their shared eligibility matcher is preferable to vendoring TLS repairs or adding consumer-specific bypass logic; exact-version matcher inspection remains incomplete. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fa273d660817. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Summary
NO_PROXYhosts after Undici's trailing-dot matcher changeRoot cause
Full Release Validation run 34159146303 resolves the candidate at
01b26bf77af0d133bda9962b418cc8e755767068. Its npm artifact dependency gate fails on GHSA-w293-vg96-wgc3 because the candidate still resolves production Undici 8.9.0:The upstream advisory marks 8.0.0 through 8.10.1 vulnerable and 8.10.2 patched. Undici's 8.10.2
BalancedPoolconstructor preserves function-valuedconnectandtlsoptions outside its JSON clone instead of silently dropping custom TLS verification.Direct dependency sources inspected:
Main fixed this in #139056. This backport carries only the candidate's existing Undici 8.x importers, its transitive jsdom 7.x edge, exact lock refresh, temporary security-cooldown exceptions, and the proxy/DNS contract needed by the newer dispatcher. Main-only release-tool and plugin manifests are absent from this candidate and are intentionally not recreated.
Verification
pnpm test src/infra/net/proxy-env.test.ts— 62 passedGH_TOKEN=... pnpm deps:vuln:gate -- --root "$PWD" --json /tmp/openclaw-undici-vuln.json --markdown /tmp/openclaw-undici-vuln.md— 1 hard blocker before in hosted validation; 0 hard blockers / 1,355 resolved versions afterpnpm install --lockfile-only— lockfile supply-chain policy passedpnpm install --frozen-lockfile— exact 1,355-entry lock passed supply-chain policypnpm deps:shrinkwrap:check— root and all plugin shrinkwraps currentpnpm deps:changes:report -- --base-ref origin/extended-stable/2026.6.33 ...— one package family changed: Undici 7.29.0/8.9.0 to 7.29.1/8.10.2; no package additions/removalspnpm docs:listgit diff --checkExact-head CI note: the network-runtime detector intentionally escalates the
NO_PROXYtest additions to full CodeQL, which is green. The separate compact-large failure is in untouched session-lock test scheduling (1 failure / 1,568 tests); its failed job was rerun without weakening or changing this backport.Scope
NO_PROXYsemanticsBackport of #139056 for the canonical
extended-stable/2026.6.33candidate.