Repository navigation
[2026.10.9] fix(security): backport fast-uri 4.2.3 to stable - #187284
Conversation
Passive macOS Gateway stops now preserve an absent current-profile service definition without invoking uninstall, while explicit low-level ghost recovery remains available. Release adaptation: the 2026.10.8 backport of #180390 removed the absent-plist guard from GatewayLaunchAgentManager's disable path without main's follow-up, so every passive stop with no LaunchAgent plist ran `openclaw gateway uninstall` (mac validation: GatewayProcessManagerTests "pause preserves unretainable services" [absent]). Stable has no migration-pending custody or `.authority` wrapper, so the guard checks `custody.definition.plist` directly. Mac-only post-tag fix; npm, Docker and Linux bytes are unaffected. (cherry picked from commit cb10ec4)
Adapt the focused dependency repair from extended-stable commit 5025458 to release/2026.10.8. Preserve malformed scheme/host rejection and relative-reference semantics through the installed MCP SDK/Ajv graph. Upstream-Fix: fastify/fast-uri@39933a1 (Vincent Le Goff) Upstream-Fix: fastify/fast-uri@acc5c5d (Vincent Le Goff) Upstream-Fix: fastify/fast-uri@f6d46df (Vincent Le Goff) Upstream-Fix: fastify/fast-uri@a9b8d67 (Ulises Gascon) Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 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. |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR upgrades stable’s fast-uri override from 4.2.1 to 4.2.3 and adds installed MCP/Ajv regression coverage. Example: An MCP schema uses the identifier %6Aavascript:alert(1).
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored stable backport addresses upstream-confirmed parser defects, and no actionable introduced bug was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherExternal MCP tool schemas enter OpenClaw’s schema validator, which delegates ordinary schemas to the MCP SDK’s Ajv provider and fast-uri for identifier resolution. flowchart LR
A[External MCP server] --> B[OpenClaw tool catalog]
B --> C[MCP schema validator]
C --> D[SDK Ajv provider]
D --> E[fast-uri parser]
E --> F[Resolved schema or compilation error]
Technical reviewBest possible solution: Carry the maintained upstream parser fix through the existing stable dependency override and release qualification. Do we have a high-confidence way to reproduce the issue? The upstream source changes and affected-version ranges establish the parser defects, and OpenClaw’s installed MCP/Ajv dependency path is visible in source; no target code was executed during this review. Is this the best way to solve the issue? Updating the existing upstream override is the smallest complete repair and preserves the established parser owner without a downstream workaround. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 54818f9e6756. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceConfig +2, Other +37. Total +39 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
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, 12:39 AM ET / 04:39 UTC (Revision 2). |
Summary
Update only the maintained fast-uri 4.2.1→4.2.3 runtime parser, its lock entries, and an installed MCP/Ajv regression. Three files, +45/-6. This is a local dependency integration, not an upstream source cherry-pick.
Necessity and provenance
External MCP tool schemas reach the SDK Ajv validator and its fast-uri dependency. The baseline accepts encoded schemes and ambiguous hosts and incorrectly normalizes a relative reference. The new regression reproduces these differences through the installed runtime dependency chain; no unauthenticated network exploit is claimed.
Fixes GHSA-w74x-v6f9-j3xg, GHSA-wjr9-j795-jxcr, GHSA-xhq7-xmqj-769h and GHSA-333x-w4r6-6crp. Exact upstream fixes credited in commit: Vincent Le Goff 39933a1f1422986f14e2d844f552238feb40f5d4, acc5c5d60c4209571789496e1732468911c7e12a, f6d46dfeab025d0c440485f4ae29fa4f14707646; Ulises Gascon a9b8d67353630aab053cd727cf629023dd018d2b. Required RomneyDa trailer retained.
Validation
Baseline regression fails and fixed installed-runtime regression passes; all 12 existing MCP metadata tests pass. Frozen installs, syntax, formatting, source/diff review and whitespace checks pass. Regression re-run independently before publication. Other audit findings remain outside this narrow repair.
Gates
DRAFT, not RFR. Exact-head independent canonical review, required hosted checks and broader train qualification remain outstanding. No merge or release approval.
Train
Targets release/2026.10.8 at 5413218. Replaces the intended scope of erroneous managed-publication draft #187269; that draft targets main and must not merge.