Skip to content

[2026.10.10-beta.5] fix(msteams): scope patched MSAL on beta train - #187293

Merged
RomneyDa merged 3 commits into
release/2026.10.10from
security/msal-beta-7.1.1-20261029
Oct 29, 2026
Merged

RomneyDa merged 3 commits into
release/2026.10.10from
security/msal-beta-7.1.1-20261029

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Scope

Draft security dependency integration for release/2026.10.10 only (GHSA-xcx6-jx8p-x3h5 / CVE-2026-109461).

  • Actual train selectors: Teams apps 2.1.0 resolves MSAL Node 5.6.0; Azure Identity 4.13.3 resolves 6.0.1. Both are in the affected >=5.0.0-beta.0 <7.1.0 range.
  • Two exact-parent overrides to mature 7.1.1, this train's minimal regenerated lock, and a real Teams/Azure SDK regression. No global override, unrelated upgrades, source vendoring, release-age exemption or broad lock transplant.
  • Existing minimumReleaseAge=10080 and minimumReleaseAgeStrict remain unchanged. No unaffected 3.x/4.x consumers are upgraded (these two train locks contain only the affected MSAL Node versions).

Attribution and implementation

Microsoft upstream: AzureAD/microsoft-authentication-library-for-js#8901, commit f550958586475dbfeb1cd44be14a2d653728850e, authored by Robbie-Microsoft [email protected] (2026-10-12). This PR is local dependency integration, not a source backport/cherry-pick: no upstream Microsoft code is copied.

The preserved real-SDK regression was authored by roboclaw-bot in aggregate 8e6f7bd, as qualified at ea375ff. Its evidence here is independently rerun against this train, not borrowed extended-stable results.

Validation

  • pnpm 12.15.0 lockfile resolution and frozen installation (scripts disabled); no release-age gate changes.

  • Real Teams client-secret token and Azure Identity HTTP-adapter exchange, malicious authorization-response routing under both exact parent resolutions, and SDK auth/certificate/managed-identity tests: 2 files / 31 tests pass on this train.

  • All requests in the regression use synthetic transports; no live tenant or credential exfiltration test. Production app token paths inspected use client_credentials; this is affected-dependency remediation, not a claim of demonstrated end-to-end OpenClaw exploitation.

  • Type-aware lint on the added test: 0 warnings/errors. Formatting and repository-owned full extension-test typecheck passed.

  • Root lock diff is only MSAL: 12 additions / 25 deletions; unrelated registry metadata refreshes excluded.

Review/release disposition

Keep DRAFT. Independent canonical source review and successful hosted checks are required before any ready-for-review transition. Local checks are not substitutes. No merge/release authorization and no review-gate bypass.

Integrate mature MSAL Node 7.1.1 for the exact affected parents Teams apps
2.1.0 (5.6.0) and Azure Identity 4.13.3 (6.0.1). Leave other consumers alone.
Honor existing minimumReleaseAge and regenerate this train's own lockfile.

Security provenance: Microsoft upstream PR AzureAD/microsoft-authentication-library-for-js#8901,
commit f550958586475dbfeb1cd44be14a2d653728850e, authored by
Robbie-Microsoft <[email protected]>.
This is local dependency integration, not an upstream source cherry-pick.
No Microsoft source is copied; the maintained package contains that fix.

Preserve the real SDK regression authored by roboclaw-bot in aggregate
8e6f7bd, as qualified in
ea375ff; validate independently on this train.

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: msteams Channel integration: msteams size: S labels Oct 29, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@RomneyDa
RomneyDa marked this pull request as ready for review October 29, 2026 04:33
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR pins MSAL Node 7.1.1 beneath two beta-train dependencies and translates exact-parent overrides for managed npm plugin installations.

Example: Install the Teams plugin with Teams apps 2.1.0 and Azure Identity 4.13.3.

  • Before: The dependency graph selects MSAL Node 5.6.0 and 6.0.1, both covered by the upstream advisory.
  • After: Workspace and managed npm override policies request MSAL Node 7.1.1 for those exact parents.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The prior implementation defect is repaired and exact-head checks pass, but substituted transports and manifest-only upgrade fixtures do not clear the security and installation qualification gates.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Teams installations include MSAL versions covered by an authorization-code credential-routing advisory.
Reason: The maintainer-authored direction narrowly remediates affected dependency consumers while preserving existing release-age controls.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this PR open: the scoped security remediation remains useful, and the prior managed npm installation finding is addressed without a new concrete code defect.

Priority: P2
Reviewed head: 0b0835431052631a6a2033d50917c74c61e7e36c

Before merge

  • Add real behavior proof - Authority-chain proof required: the supplied Teams, Azure Identity, and MSAL checks replace fetch, HTTP-client, or network-client implementations. Provide a trace through the production transport showing legitimate token redemption and no credential-bearing I/O to attacker.invalid for both patched parent resolutions, with keys, IPs, phone numbers, and non-public endpoints redacted. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - No new security defect was identified, but final-effect qualification remains necessary for this credential-routing dependency substitution.
  • Resolve merge risk - A security reviewer must resolve the remaining uncertainty about confidential-client routing through the patched production transports before beta inclusion.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Missing proof is production-transport allowed/attacker routing under both parent resolutions and a real fresh/stable-upgrade Teams installation; a beta-base failing regression run is also not supplied.
Agent review details

How this fits together

The Teams plugin delegates authentication to Teams apps and Azure Identity; workspace pnpm installation and managed npm plugin installation translate dependency policy into the MSAL implementation used for token requests.

flowchart TD
  A[Workspace dependency policy] --> B[pnpm dependency resolution]
  A --> C[Managed npm override adapter]
  C --> D[Plugin installation and peer planning]
  B --> E[MSAL Node 7.1.1]
  D --> E
  F[Teams and Azure authentication] --> E
  E --> G[Microsoft token endpoint]
Loading

Technical review

Best possible solution:

Qualify the scoped pins through the existing managed npm installer and production authentication transports before shipping the beta integration.

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

The beta lockfile contains advisory-covered MSAL versions, and upstream source establishes the authorization-response routing defect; no end-to-end OpenClaw exploit was reproduced or claimed.

Is this the best way to solve the issue?

Exact-parent pins and translation at the existing shared override producer provide a focused repair without global replacement or competing installation policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e125921a28eb.

Merge-risk options

Maintainer options:

  1. Verify the final routing boundary (recommended)
    The PR owner should exercise both parent resolutions with production transports against controlled endpoints, recording successful legitimate redemption and no credential-bearing request to the attacker-selected origin.

Provenance checked

  • Affected MSAL dependency resolutions changes intended behavior with a stated reason (7dbfab8: The dependency refresh selected eligible releases under a seven-day cutoff; the new advisory supplies the reason to replace the affected transitive versions.)
  • Managed npm selector normalization changes intended behavior with a stated reason (e00d46b: Normalize pnpm selectors before npm installation and peer planning to avoid parser failures and stale peer retention.)
  • Existing override reader and alias filtering keeps the original intent (5d55717: Apply host dependency policy to managed plugin roots; later alias handling accommodates npm parser compatibility, and the extracted code retains that behavior.)

Testing

Proof path: in-process harness.

Security

Needs attention: No new security defect was identified, but final-effect qualification remains necessary for this credential-routing dependency substitution.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 7f0781f adds src/infra/npm-managed-root.ts:158 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7f0781faa67d; files: src/infra/npm-managed-root.ts)
  • Vincent Koc: Raw commit 5d55717 adds src/infra/npm-managed-root.ts:121 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5d557171b3cd; files: src/infra/npm-managed-root.ts)
  • wangyan2026: Raw commit e00d46b adds src/infra/npm-managed-root.ts:975 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e00d46b19b63; files: src/infra/npm-managed-root.ts)

PR surface

Source +29, Tests +254, Config +2, Other -13. Total +272 across 6 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 2 68 39 +29
Tests 2 254 0 +254
Docs 0 0 0 0
Config 1 2 0 +2
Generated 0 0 0 0
Other 1 12 25 -13
Total 6 336 64 +272

Review metrics

Metric Value Why it matters
Production versus test LOC Production +68/-39; tests +254/-0 Production growth adds exact-parent translation while moving the existing filter into one shared module; tests cover SDK behavior and managed-manifest lifecycle.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: MSAL moves from the parents' declared 5.x and 6.x dependency majors to 7.x, including managed installed-plugin dependency trees.

Label justifications:

  • P2: This remediates an upstream security advisory in owned dependency graphs, while an exploitable OpenClaw authorization-code path has not been demonstrated.
  • merge-risk: 🚨 security-boundary: The dependency substitution changes how authorization-response metadata can influence confidential-client token routing.
  • merge-risk: 🚨 compatibility: MSAL moves from the parents' declared 5.x and 6.x dependency majors to 7.x, including managed installed-plugin dependency trees.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add allowed and attacker-selected-origin final-effect proof using production transports under both scoped resolutions.
  • Show a fresh installation and upgrade from v2026.10.8 with MSAL 7.1.1 resolved and existing settings, data, and local overrides preserved.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-29T04:41:38.391Z sha b50b2a9 :: needs real behavior proof before merge. :: [P1] Apply the scoped pins to managed npm plugin installs

Reviewed October 29, 2026, 2:38 AM ET / 06:38 UTC (Revision 2).

@RomneyDa RomneyDa changed the title fix(msteams): scope patched MSAL on beta train [2026.10.10-beta.5] fix(msteams): scope patched MSAL on beta train Oct 29, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@RomneyDa
RomneyDa merged commit 66c42a2 into release/2026.10.10 Oct 29, 2026
137 checks passed
@RomneyDa
RomneyDa deleted the security/msal-beta-7.1.1-20261029 branch October 29, 2026 06:42
RomneyDa added a commit that referenced this pull request Oct 29, 2026
…nd realign npm override fixture (#187562)

* fix(plugins): restore non-blocking setup artifact retirement on release

Revert the stray plugin-instance.ts hunk carried into the release
backport of #183606 (an auto-reply-only change on main), which tracked
module release in the caller's work scope and made setup cache
retirement wait on artifact removal. Realign the matching release-only
owner-drain assertion added with #181675 to the main test.

* test(plugins): expect nested npm form for exact-parent overrides

#187293 intentionally maps pnpm exact-parent selectors ([email protected]>child)
to npm's nested override form on this train. Realign the npm-spec
selector fixture to that behavior; the npm-alias retry still drops it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants