Skip to content

fix(security): require patched Node and native pnpm runtimes - #179992

Merged
joshavant merged 9 commits into
mainfrom
remediation/emudhra-node-releases-2026-10-21
Oct 22, 2026
Merged

joshavant merged 9 commits into
mainfrom
remediation/emudhra-node-releases-2026-10-21

Conversation

@joshavant

@joshavant joshavant commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

OpenClaw could start on an affected Node 24+ build whenever its SQLite capability check passed, and current source tooling selected pnpm 12.12.1 with an independently affected native TLS runtime. Require Node 24.22.1+ on the 24 line or 26.12.1+ on the 26 line through the existing runtime owner, while retaining diagnostic/update recovery and the existing future-major development policy.

Pin current pnpm tooling to 12.15.0, authenticate the actual wrapper/native archives, and remove the obsolete 12.3.4 image-seeding shortcut. Preserve source-selected historical replay through its existing owner, with its older native TLS exposure recorded separately. Fixed-tool benchmark environments use pnpm 12’s supported pmOnFail=ignore setting so checking out an older source tree cannot silently select its vulnerable executable. Regenerate the coupled package-manager lock document; the workspace dependency document stays byte-identical.

Align managed installers, worker bootstrap archives and checksums, container digests, active CI/release selectors (including floating requests that could reuse an old cached patch), native macOS runtime selection, and current consumer fixtures/docs. Remove the obsolete vendor-capability note and migrate its callers; retain the separate runtime-pin migration advice.

Validation in an isolated Linux arm64 UTM guest:

  • Actual pnpm 12.15.0 rejects 36/36 incident TLS attempts across default trust, old SSL_CERT_FILE and old .npmrc CA overrides; 8/8 public/private registry controls pass. The exact executable in the authenticated npm archive matches the tested official release binary. This final/non-prerelease release is currently on npm next-12; latest/latest-12 still select 12.14.0.

  • Real offline Corepack 0.35 bootstrap activates the new pnpm from authenticated archives. Its native executable consumes the unchanged lock for all 200 workspace projects, with 219 manifest/patch inputs, without rewriting the resulting lock. 352 focused bootstrap, installer and performance tests pass; image tests, lint, tooling typecheck, workflow audit and Bash syntax pass after correcting one unused test parameter.

  • Official 24/26 executables: 192/192 incident TLS attempts rejected, including explicit old CA inputs; 16/16 ordinary HTTPS controls succeeded. Archives match official HTTPS checksum manifests. Tagged source contains all eight incident SPKI rejections: Node 24, Node 26.

  • Actual Node 26.12.0 ordinary Gateway invocation refuses the new floor. The rootless --node-only installer downloads and verifies 24.22.1, and canonical admission succeeds afterward.

  • A complete isolated Gateway on 24.22.1 completes two embedded-agent turns through a synthetic OpenAI Responses server. Launcher, built-CLI recovery, runtime/update/Doctor, bootstrap, installer and affected workflow tests pass. The two primary admission regressions fail on the base and pass with this change.

  • After integrating main 0e3aaad0c2e, pnpm build:runtime, core/tooling typechecks, the canonical workflow audit, tooling lint, 160-file formatting and Bash syntax pass. All 25 selected core test files pass 629 cases across seven canonical shards, including the surviving preview owner. The rebuilt CLI/recovery suite passes 142 tests; all 119 Parallels owner tests pass after restoring the isolated checkout’s Git metadata. A real isolated Gateway still completes its embedded provider turn. Actual native pnpm retains 12.15 in all six historical/current fixed-tool environments; its 200-workspace offline frozen lock proof passes. Both the complete repair and regenerated lock received fresh P0–P2 review with no findings. Core lint retains three diagnostics in untouched probe/worker lines; all three reproduce with the exact base module under the same 45-file lint scope. The runtime build also reports a startup-JS budget warning (318.1 KiB versus 318.0 KiB); no exception was added and its baseline attribution remains unresolved.

Both new Node lines contain the libuv short-path fix for the documented Windows RUNNER~1 assertion, allowing retirement of the unsafe 24.16 exception. Actual Windows packaged-fresh execution remains with the existing Cross-OS/Full Release Validation lanes. Native macOS/Windows/FreeBSD execution, x64 TLS execution, paid/live-model validation and a full published-driver × candidate package upgrade were not qualified here; six changed Swift files were parsed successfully. Actual Linux arm64 musl Node 24.22.1 and 26.12.1 separately reject 96/96 incident attempts across four modes per executable, with 8/8 HTTPS controls. This does not attest x64 musl execution.

The real secret-egress Worker’s exported PEM also rejects all 12 incident chains on main under Node 24/26 and supported stable/fork Bun, and on the maintenance candidate under Node 26 and supported Bun; all seven local-CA controls and seven public TLS controls using those exact exported files pass. The suspected AAA export gap does not reproduce: those runtime built-in root sets already omit AAA. This does not qualify general Bun verification with an explicit old custom CA.

This qualifies the supported Node 24/26 paths and the current Linux arm64 native pnpm path. Historical-source replay pins, future-major development builds, Bun, GitHub Actions' own bundled runtime, existing published images and installed fleets retain their separate qualification/delivery obligations. Native pnpm execution on other platforms remains unqualified here.

PR CI follow-ups keep the hardened runtime policy intact and correct stale positive-runtime fixtures, workflow expectations and the generated config-doc hash. The regenerated config output differs only in the existing worker-image help field; schema counts and channel/plugin hashes stay unchanged. Actual Node26.12.1 focused tests, touched lint/format and CLI/infra/tooling typechecks pass. All654 tests across the six affected workflow/Parallels owners pass after provisioning the required Git2.56 test prerequisite in the isolated VM. Fresh complete-context P0–P2 reviews passed; old-Node, unsafe-SQLite, ownership and admission-warning controls remain.

The musl E2E stage also upgrades its Alpine CA bundle to released20261020-r0 before package installation. The signed package and real package transaction are qualified separately: the old default bundle accepted6/12 incident chains; the new bundle rejects12/12 with a passing public HTTPS control. This minimal Node base has no hashed CA-directory entries. The focused E2E source-owner suite passes; full image build/delivery and custom old-CA modes remain separate. Initial CI also observed an external Fedora RPM mirror failure and an untouched Levanto prepared-URL test failure; no TLS checks, timeouts or assertions were relaxed. Exact-head CI must be evaluated on the current head.

Detached Node release authentication is also complete for the exact retained Linux arm64 22.23.4, 24.22.1 and 26.12.1 archives used in runtime qualification. All three official SHASUMS signatures validate against currently authorized keys from pinned official release-keys source, acquired through the existing authenticated GitHub SSH connection independently of the release TLS download. The original archive and exercised executable hashes match; three altered-manifest controls fail signature verification. This authenticates those artifacts and the complete signed checksum manifests, without adding other-platform execution or fleet-delivery claims.

CI follow-up: aligned the existing QA Multipass supported-positive fixture with the patched Node24.22.1 floor, retaining the missing-runtime and unsupported24.15.0 bootstrap cases and their existing assertions. The update-target fixture now preserves real module exports; its one obsolete closed-mock baseline entry is removed as a strict shrink. Production code and runtime policy are unchanged by this follow-up.

Validation: exact-source task UTM Node26.12.1 reproduced the original QA failure and actual mock-export ratchet failure. The fixed full test files pass20tests (QA13, CLI7), and the canonical mock ratchet accepts the exact one-entry shrink. Fresh full-context independent P2 review completed all4passes with no findings. Targeted format/lint/type results are recorded in the accompanying proof manifest.

Prior-head Doctor CI: an isolated paired replay against the actual CI base 97d54bbd14bb20748d850eb7de8c185ea56c5181 reproduces the same visible SessionStoreMigrationRequiredError warning under both Node 24.21.0 and 24.22.1, as well as the prior PR merge. This bounded 18-file reproduction shows that the visible Doctor failure does not require the Node update; it does not replay the complete native CI job. Feishu was excluded from that follow-up at the maintainer’s request. No migration assertion, budget, gate, or behavior was changed. CI for the new conflict-repair head must be evaluated separately.

Conflict refresh: incorporated main a52e2aa0ffdb4ed19de42a3eece3698268a71af2 in commit 110adf2f87a09c255be223cf3f0e2d5004681a6c. The authored resolution touches only the runtime-recovery test and generated config-doc checksum. Preserve main’s shared fixtures, parameterized manager cases, root-directory recovery coverage and workspace-ownership controls while retaining the patched Node 24.22.1/26.12.1 positive fixtures and Bun-owned test runtime restoration. The checksum was regenerated through its canonical owner; schema counts remain byte-identical to main and channel/plugin hashes are unchanged. No runtime policy, production logic, test assertions, skips or baseline budgets were changed by the authored resolution.

Validation on the exact combined source in an isolated Linux arm64 UTM guest with Node 26.12.1 and pnpm 12.15.0: frozen install, canonical config generation/check, runtime build, and all four selected runtime/recovery/config/launcher files pass 301 tests across three canonical shards. Two existing real-Bun launcher cases are skipped because Bun is unavailable in this environment. Touched lint/format and the infra test typecheck pass. All 58,808 tracked source entries match the committed candidate tree. Fresh independent P0–P2 review found no actionable issues in the two conflict resolutions. The candidate also merges cleanly with newer main 7ba05b683647e10a2f760c584187a79481c3f0f8 without further integration. Earlier platform/TLS qualifications and limitations remain as described above; new-head CI is separate.

Require Node 24.22.1 or 26.12.1 even when SQLite capability checks pass.
Align active managed runtime selectors, archive checksums, image digests, native macOS selection, diagnostics, and coupled fixtures while preserving update recovery.
@joshavant
joshavant requested a review from a team as a code owner October 21, 2026 22:39
@clawsweeper

clawsweeper Bot commented Oct 21, 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.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Oct 21, 2026
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 110adf2f87a09c255be223cf3f0e2d5004681a6c
  • Maintainer: @joshavant
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • package.json

Carefully review these changes before merging.

@joshavant
joshavant requested a review from a team October 21, 2026 22:40
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos gateway Gateway runtime cli CLI command changes security Security documentation scripts Repository scripts commands Command implementations docker Docker and sandbox tooling size: XL labels Oct 21, 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 21, 2026
@joshavant
joshavant merged commit 6c00e67 into main Oct 22, 2026
83 of 85 checks passed
@joshavant
joshavant deleted the remediation/emudhra-node-releases-2026-10-21 branch October 22, 2026 04:00
This was referenced Oct 27, 2026
RomneyDa added a commit that referenced this pull request Oct 27, 2026
…taging (#180769)

2026.10.6 raised engines.node to >=24.22.1 <25 || >=26.12.1 (#179992). Package-mode updates (npm/pnpm global, Control UI update.run) staged and installed the target before checking its Node requirement, so users on older Node got an opaque global-install-failed. Target resolution now runs the existing runtime-compat owner first against the Gateway's selected Node and refuses with preflight-node-runtime-incompatible, leaving the Gateway untouched and naming the current version, the required range and the next step. Unknown engines metadata never blocks. Fixes #180636 (@sglion777), Fixes #180701 (@Almost-Certified-ops), Fixes #180707 (@billpang1-sketch); Refs #180688 (@rayluo88).

(cherry picked from commit 3755040)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit abc2431)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. cli CLI command changes commands Command implementations dependencies-changed PR changes dependency-related files docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: qa-lab gateway Gateway runtime scripts Repository scripts security Security documentation size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant