Skip to content

[2026.10.9] fix(security): backport fast-uri 4.2.3 to stable - #187284

Merged
RomneyDa merged 2 commits into
release/2026.10.9from
security/fast-uri-stable-20261029
Oct 29, 2026
Merged

RomneyDa merged 2 commits into
release/2026.10.9from
security/fast-uri-stable-20261029

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

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.

shakkernerd and others added 2 commits October 27, 2026 13:12
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]>
@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 complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 29, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment 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 added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment 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

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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).

  • Before: The parser decodes the malformed scheme into javascript:.
  • After: The parser rejects the malformed scheme, and Ajv schema compilation throws.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The narrow dependency repair is coherent and has reported installed-runtime regression coverage, but the evidence does not establish shipped-entry-point behavior.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored backport is outside the contributor media gate; its body reports installed MCP/Ajv regression results, without a supplied recording or runtime trace through OpenClaw’s shipped MCP entry point.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Malformed or relative URI identifiers in MCP schemas can be accepted or resolved with changed meaning by the affected parser.
Reason: The maintained upstream patch fixes documented parser defects through an existing dependency override, and the maintainer-authored PR establishes direction.

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
Reviewed head: 93a55d32ab42ad019f3778b612c3a4981ac9ce6d

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No shipped OpenClaw MCP-session trace is supplied; baseline failure and fixed success are reported for the installed dependency regression.
Agent review details

How this fits together

External 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]
Loading

Technical review

Best 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

  • Existing fast-uri override and lock resolution keeps the original intent (ede3447: The dependency refresh selected 4.2.1 under a seven-day publication cutoff while preserving parser contracts; earlier security repairs also used this existing upstream override.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned change: The introduced diff updates the existing override, its package integrity and Ajv dependency edge, and adds a focused regression script without changing application policy or configuration. (pnpm-workspace.yaml:58, 93a55d32ab42)
  • Production consumer and dependency inspection signal: OpenClaw constructs AjvJsonSchemaValidator for ordinary MCP schemas; the added script imports that SDK provider and resolves fast-uri through its installed Ajv graph, making the dependency’s parser contract directly relevant. (src/agents/mcp-json-schema-validator.ts:31, 93a55d32ab42)
  • Upstream fixes verified: The v4.2.3 comparison contains the credited scheme, host, relative-reference and suffix-reference fixes; all four cited GitHub advisories identify 4.2.3 as the patched 4.x version. (index.js, 00f41407ef64)
  • Current main remains affected: The fetched main revision still pins fast-uri 4.2.2, which falls within the four advisories’ affected 4.x ranges; this stable backport is not already implemented there. (pnpm-workspace.yaml:107, 54818f9e6756)
  • Existing dependency ownership: History shows repeated fast-uri security updates by Vincent Koc and Peter Steinberger; the 4.2.1 pin came from the dependency refresh in chore(deps): refresh dependencies with seven-day cutoff #158298, whose stated intent preserves parser contracts. (pnpm-workspace.yaml, 54818f9e6756)
  • Correct stable publication: DO NOT MERGE: publisher workspace mismatch for fast-uri stable backport #187269 explicitly identifies this PR’s exact head and stable base as its intended replacement; the beta and extended backports address separate release branches. (93a55d32ab42)

Likely related people:

  • Peter Steinberger: Raw commit ede3447 adds pnpm-workspace.yaml:75 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ede3447b1029; files: pnpm-workspace.yaml)
  • Vincent Koc: Raw commit 2918779 adds pnpm-workspace.yaml:46 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2918779dbf3c; files: pnpm-workspace.yaml)
  • Dallin Romney: Raw commit b0e112c adds pnpm-workspace.yaml:78 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: b0e112c30f9c; files: pnpm-workspace.yaml)

PR surface

Config +2, Other +37. Total +39 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 1 3 1 +2
Generated 0 0 0 0
Other 2 42 5 +37
Total 3 45 6 +39

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a focused security dependency backport with a concrete MCP schema consumer, without evidence of an actively exploited OpenClaw vulnerability or urgent workflow outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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:32:45.622Z sha 93a55d3 :: needs maintainer review before merge. :: none

Reviewed October 29, 2026, 12:39 AM ET / 04:39 UTC (Revision 2).

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@RomneyDa
RomneyDa changed the base branch from release/2026.10.8 to release/2026.10.9 October 29, 2026 05:08
@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: S and removed size: XS labels Oct 29, 2026
@RomneyDa RomneyDa changed the title fix(security): backport fast-uri 4.2.3 to stable [2026.10.9] fix(security): backport fast-uri 4.2.3 to stable Oct 29, 2026
@RomneyDa
RomneyDa merged commit 5e279ec into release/2026.10.9 Oct 29, 2026
219 checks passed
@RomneyDa
RomneyDa deleted the security/fast-uri-stable-20261029 branch October 29, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts 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.

3 participants