Skip to content

member-info fails with "fetch failed" on WSL2 in 2026.6.1 (SSRF fetch guard / undici dispatcher regression) #91522

Closed as not planned

Description

@fdiazluque

Bug Report

Version: OpenClaw 2026.6.1 (2e08f0f) — regression from 2026.5.22 (a374c3a)

Environment

  • OS: WSL2 (Linux 6.6.87.2-microsoft-standard-WSL2, x64)
  • Node.js: v22.22.0
  • Platform: Microsoft Teams channel (msteams)

Description

message tool with action=member-info fails with "fetch failed" error in 2026.6.1. This prevents the bot from resolving user emails/profiles via Microsoft Graph API.

The same call works correctly in 2026.5.22 after downgrade.

Steps to Reproduce

  1. Configure msteams channel with Graph API access
  2. Call message tool: action=member-info, channel=msteams, userId=<aadObjectId>
  3. Observe error: "fetch failed"

Root Cause Analysis

  • IPv6 is non-functional in this WSL2 environment (curl -6 returns HTTP 000 for graph.microsoft.com)
  • IPv4 works fine (curl -4 returns HTTP 200)
  • The fetchWithSsrFGuard → createPinnedDispatcher → dedupeAndPreferIpv4 path pins DNS addresses
  • Despite preferring IPv4, the undici dispatcher connection fails with "fetch failed" (raw TCP error)
  • Node.js native fetch() and curl both succeed to graph.microsoft.com — only the SSRF-guarded fetch path fails
  • The Bot Framework connector (different HTTP path, not through SSRF guard) works fine — Teams messages are received/sent normally
  • MSAL token acquisition also works (Graph tokens are obtained successfully)
  • The failure is specifically in the fetchGraphJson call after token acquisition

Workaround

Downgrade to 2026.5.22:

npm install -g openclaw@2026.5.22

Additional Context

  • undici version in both 2026.5.22 and 2026.6.1: 8.3.0
  • The SSRF guard / pinned dispatcher code exists in both versions, but something in 2026.6.1 causes the connection to fail
  • Changelog for 2026.6.1 mentions: "Channels: cap ... Microsoft Teams ... request/retry timers" and "Provider and plugin requests now bound more timers, retries, OAuth/device-code lifetimes, media downloads, local service probes, and generated-content polling paths" — these changes may be related

Activity

  1. clawsweeper commented on Jun 8, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 3:43 PM ET / 19:43 UTC.

    Summary
    Keep open: current main and v2026.6.9 still route Teams member-info through the guarded Microsoft Graph fetch path, and the WSL2/Undici mitigation is not live-proven for this Graph regression. Any repair crosses the SSRF/DNS-pinning boundary, so this remains maintainer/security live-repro work.

    Reproducibility: no. for the exact live failure: this read-only review did not run a WSL2 gateway with real Teams Graph credentials. Source inspection does confirm the reported member-info action still flows through Graph token resolution and fetchWithSsrFGuard.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    Next step
    The remaining blocker is maintainer-owned live WSL2 Teams Graph reproduction plus security judgment around the guarded-fetch boundary, not a safe autonomous repair lane.

    Security
    Needs attention: The issue is security-sensitive because the observable failure and likely repair path touch SSRF guarded fetch, DNS pinning, and Undici dispatcher policy.

    Review details

    Best possible solution:

    Reproduce the current Teams member-info Graph call on WSL2 with redacted transport logs, then make the narrowest guarded-fetch or Teams Graph repair that preserves SSRF DNS pinning and Microsoft Graph auth behavior.

    Do we have a high-confidence way to reproduce the issue?

    No for the exact live failure: this read-only review did not run a WSL2 gateway with real Teams Graph credentials. Source inspection does confirm the reported member-info action still flows through Graph token resolution and fetchWithSsrFGuard.

    Is this the best way to solve the issue?

    Unclear: current main has IPv4 preference and WSL2 Undici family-policy mitigation, but that is not live proof for this Graph call. The best fix must preserve the guarded-fetch security boundary rather than bypass it.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • No live WSL2 Microsoft Graph member-info call with real Teams credentials was run against current main or v2026.6.9, so the exact reported runtime failure is not high-confidence reproduced.
    • A repair that bypasses fetchWithSsrFGuard, DNS pinning, hostname/IP validation, or the dispatcher policy could weaken OpenClaw's SSRF boundary.
    • The open HTTP egress refactor is broad, draft, and security-sensitive; it is related context, not a merged canonical fix for this specific Teams Graph regression.

    Codex review notes: model internal, reasoning high; reviewed against 6daf9307e0b9.

    Label changes

    Label justifications:

    • P1: The report describes a release regression that blocks a real Microsoft Teams Graph member/profile lookup workflow on WSL2.
    • impact:security: The failing path is inside the SSRF guarded fetch and DNS-pinning boundary.
    • impact:auth-provider: The failure occurs after Teams Graph token acquisition and prevents Graph-backed member identity resolution.
    Evidence reviewed

    Security concerns:

    • [medium] Preserve the SSRF fetch boundary — extensions/msteams/src/graph.ts:98
      The failing Teams Graph request currently runs through fetchWithSsrFGuard; a fix must not bypass DNS pinning or hostname/IP validation without an approved replacement boundary and live proof.
      Confidence: 0.86

    Acceptance criteria:

    • Live WSL2 Teams message tool call with action=member-info against Microsoft Graph using redacted credentials/logs.
    • If code changes are made, run node scripts/run-vitest.mjs extensions/msteams/src/graph-members.test.ts extensions/msteams/src/channel.actions.test.ts src/infra/net/ssrf.dispatcher.test.ts src/infra/net/fetch-guard.ssrf.test.ts.
    • Regression-check at least one other guarded provider or channel fetch path if shared transport behavior changes.

    What I checked:

    • Live issue state: The live issue remains open with maintainer/security/live-repro/product-decision labels and no closing pull request; the prior ClawSweeper review also kept it open for WSL2 Teams Graph proof.
    • Member-info route still exists: Current main advertises and handles member-info, then dispatches to getMemberInfoMSTeams({ cfg, userId }). (extensions/msteams/src/channel.ts:410, 6daf9307e0b9)
    • Graph member lookup still uses Graph token plus fetchGraphJson: getMemberInfoMSTeams resolves a Graph token and fetches /users/{id} through fetchGraphJson, matching the reporter's post-token failure path. (extensions/msteams/src/graph-members.ts:36, 6daf9307e0b9)
    • Graph requests still use SSRF guard: requestGraph wraps Microsoft Graph requests with fetchWithSsrFGuard and audit context msteams.graph; there is no Teams-specific WSL2 bypass or recovery path here. (extensions/msteams/src/graph.ts:98, 6daf9307e0b9)
    • Pinned dispatcher path remains active: The guarded fetch path resolves the host under SSRF policy and creates a pinned dispatcher before calling Undici runtime fetch when a dispatcher is present. (src/infra/net/fetch-guard.ts:557, 6daf9307e0b9)
    • IPv4 preference and WSL2 family policy exist but are not live proof: Current code dedupes DNS results with IPv4 first and disables Undici autoSelectFamily on WSL2; tests assert the WSL2 policy, but this is not a live Teams Graph reproduction. (src/infra/net/ssrf.ts:523, 6daf9307e0b9)

    Likely related people:

    • sudie-codes: Commit 4e67e7c and PR msteams: add member-info action #57528 introduced the Graph-backed Teams member-info action and graph-members.ts. (role: feature introducer; confidence: high; commits: 4e67e7c02cd8; files: extensions/msteams/src/channel.ts, extensions/msteams/src/graph-members.ts)
    • steipete: PR fix(ssrf): disable HTTP/2 for pinned dispatchers (undici 8.0) #61777 was merged by steipete and centralized HTTP/1.1 SSRF dispatchers used by this guarded Graph path. (role: adjacent transport merger; confidence: high; commits: 1b9ec88d9cc5, 0f5919a4ba0e; files: src/infra/net/fetch-guard.ts, src/infra/net/ssrf.ts, src/infra/net/undici-runtime.ts)
    • zozo123: PR fix(ssrf): disable HTTP/2 for pinned dispatchers (undici 8.0) #61777 authored the Undici 8.0 HTTP/1 pinned-dispatcher compatibility work adjacent to the reported failure surface. (role: adjacent transport contributor; confidence: medium; commits: 0f5919a4ba0e; files: src/infra/net/fetch-guard.ts, src/infra/net/ssrf.ts, src/infra/net/ssrf.dispatcher.test.ts)
    • kinfey: Commit c959ac3 added WSL2 networking and Undici dispatcher diagnostics, adjacent to the WSL2 family-policy behavior implicated here. (role: adjacent WSL networking contributor; confidence: medium; commits: c959ac3a25d0; files: src/infra/net/undici-global-dispatcher.ts, src/infra/net/undici-family-policy.ts)
    How this review workflow works
    • 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.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.
    impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    and removed
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 15, 2026
  3. openclaw-barnacle commented on Jul 6, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  4. openclaw-barnacle commented on Jul 14, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

  5. locked as resolved and limited conversation to collaborators on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions