Repository navigation
[2026.10.10-beta.5] fix(msteams): scope patched MSAL on beta train - #187293
Conversation
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]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs real behavior proof before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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 optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: No new security defect was identified, but final-effect qualification remains necessary for this credential-routing dependency substitution. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +29, Tests +254, Config +2, Other -13. Total +272 across 6 files. Added test files: 2. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 29, 2026, 2:38 AM ET / 06:38 UTC (Revision 2). |
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…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.
Scope
Draft security dependency integration for release/2026.10.10 only (GHSA-xcx6-jx8p-x3h5 / CVE-2026-109461).
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.