Skip to content

fix(deps): backport Undici security update for 2026.6.35 - #141583

Merged
RomneyDa merged 4 commits into
extended-stable/2026.6.33from
fix/extended-stable-2026-6-35-undici
Sep 7, 2026
Merged

RomneyDa merged 4 commits into
extended-stable/2026.6.33from
fix/extended-stable-2026-6-35-undici

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Summary

  • backport main's reviewed Undici security repair from fix: retain proxy DNS checks with Undici security updates #139056 to the 2026.6.35 candidate
  • move every candidate-owned Undici 8.x importer from 8.9.0 to patched 8.10.2 and its remaining jsdom edge from 7.29.0 to 7.29.1
  • retain strict local DNS pinning for NO_PROXY hosts after Undici's trailing-dot matcher change

Root 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 BalancedPool constructor preserves function-valued connect and tls options 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 passed
  • GH_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 after
  • pnpm install --lockfile-only — lockfile supply-chain policy passed
  • pnpm install --frozen-lockfile — exact 1,355-entry lock passed supply-chain policy
  • pnpm deps:shrinkwrap:check — root and all plugin shrinkwraps current
  • pnpm 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/removals
  • pnpm docs:list
  • git diff --check

Exact-head CI note: the network-runtime detector intentionally escalates the NO_PROXY test 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

  • production TypeScript: +5 net lines, preserving Undici NO_PROXY semantics
  • tests: +17 lines
  • remaining changes: exact dependency manifests/lock/shrinkwraps, cooldown policy, and two documentation lines
  • no release publication, tag, or npm mutation

Backport of #139056 for the canonical extended-stable/2026.6.33 candidate.

@RomneyDa
RomneyDa requested a review from a team as a code owner September 7, 2026 21:26
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 7, 2026
@github-actions

github-actions Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/browser/package.json
  • extensions/discord/npm-shrinkwrap.json
  • extensions/discord/package.json
  • extensions/qa-matrix/package.json
  • extensions/telegram/package.json
  • npm-shrinkwrap.json
  • package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: telegram Channel integration: telegram extensions: browser size: XS maintainer Maintainer-authored PR labels Sep 7, 2026
@github-actions

github-actions Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes are blocked

OpenClaw 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:

  • extensions/discord/npm-shrinkwrap.json changed.
  • npm-shrinkwrap.json changed.
  • pnpm-lock.yaml changed.
  • extensions/browser/package.json changed devDependencies.
  • extensions/discord/package.json changed dependencies.
  • extensions/qa-matrix/package.json changed dependencies.
  • extensions/telegram/package.json changed dependencies.
  • package.json changed dependencies.

Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:

  • extensions/browser/package.json changed devDependencies.
  • extensions/discord/package.json changed dependencies.
  • extensions/qa-matrix/package.json changed dependencies.
  • extensions/telegram/package.json changed dependencies.
  • package.json changed dependencies.

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 push

If this PR intentionally needs a dependency graph change, ask a repository admin or member of @openclaw/openclaw-secops to comment:

/allow-dependencies-change

The action will approve the current head SHA (2cf7e1d32c4ae085b8deedc9accfa9f433066a7f) when it reruns. A later push requires a fresh approval.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 7, 2026, 6:44 PM ET / 22:44 UTC.

ClawSweeper review

What this changes

Updates 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
Reviewed head: 2cf7e1d32c4ae085b8deedc9accfa9f433066a7f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-supported backport with no identified patch defect; dependency authorization is a separate human gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored backport is exempt from the external-contributor proof gate. Candidate installation and vulnerability-gate results plus the related merged repair’s HTTP/TLS observations are supplemental evidence; no new runtime proof was executed here.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored backport is exempt from the external-contributor proof gate. Candidate installation and vulnerability-gate results plus the related merged repair’s HTTP/TLS observations are supplemental evidence; no new runtime proof was executed here.
Evidence reviewed 10 items Backport identity and necessity: The supplied verified introduction evidence pins the delta from 01b26bf to this head. The PR targets extended-stable/2026.6.33, whose dependency manifests previously selected Undici 8.9.0. The supplied discussion identifies this as the 2026.6.35 candidate repair, rather than another proposed main-branch implementation.
Shared matcher and dependency signal: Read the complete proxy environment module. Its documented authoritative contract is Undici’s EnvHttpProxyAgent matcher; the introduced normalization removes one trailing dot from target and exclusion hostnames while retaining port and domain-boundary checks.
Decision reaches guarded network I/O: The guarded-fetch redirect loop checks proxy eligibility for each destination. Excluded targets reach resolvePinnedHostnameWithPolicy and createPinnedDispatcher before network I/O; ssrf.ts checks resolved addresses and installs the pinned lookup. The Node HTTP-agent adapter and media provider helper also consume the shared matcher.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Decision needed

Question Recommendation
Should an authorized admin or security-team member approve this head’s Undici upgrades and two temporary cooldown exceptions? Authorize the bounded security backport: Approve the pinned dependency changes using the merged repair, official advisory, and candidate validation evidence.

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

  • Resolve merge risk (P1) - The exact Undici 8.10.2 proxy-matcher bytes could not be retrieved by this reviewer; current upstream source and the merged repair corroborate the contract but do not complete that exact-version comparison.
  • Complete next step (P2) - A repository admin or openclaw-secops member must authorize the dependency changes for head 2cf7e1d using /allow-dependencies-change.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source +5, Tests +17, Docs +1, Config +3, Other 0. Total +26 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 2 11 6 +5
Tests 1 17 0 +17
Docs 1 2 1 +1
Config 6 8 5 +3
Generated 0 0 0 0
Other 2 24 24 0
Total 12 62 36 +26

Review metrics

Metric Value Why it matters
Dependency cooldown exceptions 2 exact-version exceptions added Both exceptions cover patched Undici releases and name September 12 as their removal date.
Matcher implementation and coverage Production TypeScript +5 net lines; tests +17 The small production increase extends the existing shared matcher rather than adding another routing path.

Root-cause cluster

Relationship: same_root_cause
Canonical: #139056
Summary: The merged main repair is the source of this backport; the separate extended-stable destination remains necessary.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the bounded backport with aligned dependency locks and shared DNS-safe proxy matching, subject to the repository’s explicit dependency authorization.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This is a focused security-dependency backport for an extended-stable candidate, without evidence of an active OpenClaw exploit or widespread runtime outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored backport is exempt from the external-contributor proof gate. Candidate installation and vulnerability-gate results plus the related merged repair’s HTTP/TLS observations are supplemental evidence; no new runtime proof was executed here.

Evidence

What I checked:

  • Backport identity and necessity: The supplied verified introduction evidence pins the delta from 01b26bf to this head. The PR targets extended-stable/2026.6.33, whose dependency manifests previously selected Undici 8.9.0. The supplied discussion identifies this as the 2026.6.35 candidate repair, rather than another proposed main-branch implementation. (package.json:2002, 2cf7e1d32c4a)
  • Shared matcher and dependency signal: Read the complete proxy environment module. Its documented authoritative contract is Undici’s EnvHttpProxyAgent matcher; the introduced normalization removes one trailing dot from target and exclusion hostnames while retaining port and domain-boundary checks. (src/infra/net/proxy-env.ts:164, 2cf7e1d32c4a)
  • Decision reaches guarded network I/O: The guarded-fetch redirect loop checks proxy eligibility for each destination. Excluded targets reach resolvePinnedHostnameWithPolicy and createPinnedDispatcher before network I/O; ssrf.ts checks resolved addresses and installs the pinned lookup. The Node HTTP-agent adapter and media provider helper also consume the shared matcher. (src/infra/net/fetch-guard.ts:507, 2cf7e1d32c4a)
  • Regression coverage and recorded validation: Seven added cases cover dotted URLs, dotted exclusions, matching and mismatching ports, suffix boundaries, repeated dots, and a degenerate exclusion. Existing guarded-fetch tests assert DNS lookup and direct dispatcher selection for NO_PROXY targets. The captured PR body reports 62 passing matcher tests, frozen-lock installation, shrinkwrap validation, and zero vulnerability hard blockers; supplied checks include successful dependency, shrinkwrap, build, network-boundary, and CodeQL checks. No tests were executed during this read-only review. (src/infra/net/proxy-env.test.ts:346, 2cf7e1d32c4a)
  • Official advisory and exact TLS repair: The official advisory identifies 7.29.1 and 8.10.2 as patched for dropped custom TLS callbacks. The inspected v8.10.2 BalancedPool constructor preserves connect and tls outside the JSON clone. Sources: advisory and versioned source. (lib/dispatcher/balanced-pool.js:49)
  • Cross-origin advisory scope: The official cross-origin interceptor advisory affects 8.10.0 and 8.10.1 and identifies 8.10.2 as patched. It does not establish that the candidate’s previous 8.9.0 version suffered that separate interceptor defect.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-07T21:40:03.458Z sha 901df59 :: blocked before merge. :: none
  • reviewed 2026-09-07T22:24:57.505Z sha 901df59 :: blocked before merge. :: none

@RomneyDa
RomneyDa merged commit 75d9ce2 into extended-stable/2026.6.33 Sep 7, 2026
92 of 93 checks passed
@RomneyDa
RomneyDa deleted the fix/extended-stable-2026-6-35-undici branch September 7, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: telegram Channel integration: telegram dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: browser maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant