Skip to content

fix(runtime)!: require patched Node.js security releases - #6315

Merged
gensokyo-dev merged 6 commits into
morluto:mainfrom
ShikamaruNaaraa:fix/node-security-floors
Oct 23, 2026
Merged

gensokyo-dev merged 6 commits into
morluto:mainfrom
ShikamaruNaaraa:fix/node-security-floors

Conversation

@ShikamaruNaaraa

@ShikamaruNaaraa ShikamaruNaaraa commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #6283. Part of #6480.

Summary

Require patched Node.js releases: ^22.23.4 || ^24.22.1 || >=26.12.1, with the development pin at 24.22.1. Previously accepted releases below these floors are rejected before installation/setup proceeds.

Update the shared runtime predicate, package engines/lock, installer admission and recovery text, Doctor/Setup fixtures, relevant CI pins and core installation guidance. Installer cases cover each patch boundary, prerelease rejection and build metadata. Related translated guidance and environment-image updates remain in #6316.

Maintainer follow-up merged current main, preserved its setup-host documentation during conflict resolution, and separated installer runtime-admission cases to retain every assertion within the existing lint limit.

Contract and boundary impact

The runtime predicate owns Node admission; the standalone shell installer applies the same floors before invoking npm. CLI/MCP schemas, Evidence semantics, provider authority and cleanup contracts are unchanged. This is routine security maintenance within existing contribution scope; a new-provider scope decision is not applicable. Build outputs and local audit artifacts are excluded.

Migration: Node 22.23.3, 24.22.0 and 26.12.0 were accepted previously and are now unsupported. Upgrade to 22.23.4, 24.22.1, 26.12.1 or a newer supported release before installing/updating REA. The installer does not install or upgrade Node/npm.

Validation performed

Maintainer-executed on Linux x64 with Node 24.22.1 and the pinned npm 11.16.0:

  • Runtime predicate before/after probe: the three versions immediately below the new floors changed from accepted to rejected; all three floor versions remained accepted.
  • Exact tests for runtimeVersion, Doctor, Setup.recovery, setupEnvironment and installScript: 168 passed. After grouping cleanup, all 13 runtime-admission cases passed again; the other 28 installer cases were deliberately outside that subset.
  • Release-configuration conformance: 5 passed, including package engines/shared runtime-range parity.
  • The upgraded runtime reproduced a config-file probe failure: Node 24.18.0 executed the split --experimental-config-file PATH form, whereas 24.22.1 searched for node.config.json and exited 9. Real probes now use the explicit =PATH form; conservative unknown assertions for split argv remain. Both regex boundary/module files then passed: 63 tests. Probe failures now include Node stderr.
  • Node EventEmitter control: once wrapper names changed from bound onceWrapper (24.18.0) to wrapper (24.22.1), while .listener still identifies the original callback. Registration/removal fixtures now compare actual callback identity and preserve receiver, ordering, invocation and gap assertions. All 101 Electron hook boundary tests passed on 24.22.1 and separately on 24.18.0; the older-runtime run is a fixture compatibility control, not a supported-runtime claim.
  • HTTP attribution matrix: a 24.22.1 client also failed against a 24.18.0 server, while a 24.18.0 client passed against the 24.22.1 server. The SDK compiled the entire held tool catalog before the first call (observed approximately 11.6 seconds between listing and dispatch). The HTTP fixture now reuses the advertised-schema helper, binds the requested tool per fresh session, and validates that schema explicitly. All 2 HTTP boundary tests passed, preserving initialize/list/call/DELETE/replacement/Host checks; the replaced session must report Session not found, and clients have test-scoped cleanup. This does not claim a general upstream SDK/Undici fix.
  • npm run check: 6/6 tasks passed, module-boundary and architecture guards passed; lint had 0 errors and 2,271 existing warnings.
  • npm run docs:check: passed, including 9 README consistency tests.
  • npm run verify:package: passed the actual packed-package install/update, CLI analysis, setup/uninstall, Evidence and stdio MCP flows; 220 tools and 6 prompts verified. Lifecycle scripts were disabled for installation. This completed at b7bb6e254; the subsequent corrections change only tests, with production/package inputs unchanged. MCP first catalog: 1,878 ms, sampled startup RSS approximately 134 MiB on the constrained local run; this is an observation, not a before/after speedup claim.

Resource controls: one CPU per local command, one test worker, serial Turbo tasks, and bounded runtime settings. Focused tests took 96.9 s / 95.7 CPU s, sampled process-family RSS 1,290 MiB; the final successful complete static check took 55.7 s / 52.9 CPU s, sampled RSS 1,681 MiB. Descendant RSS is sampled every 100 ms and can double-count shared pages or miss short-lived processes. Agent token cost was not measured.

Real Hopper/Ghidra execution and macOS provider verification were not performed locally; this change does not modify those adapters. Current-head GitHub CI/review results remain the merge gate.

Author readiness

Human owner: @ShikamaruNaaraa

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-22T10:30:03.124316Z
We couldn’t complete this review. Comment @codex review to try again.
7bb17e0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issue was established.

Summary

Raises the supported Node.js floors to 22.23.4, 24.22.1, and 26.12.1. Updates package requirements, installer checks, CI pins, recovery text, and tests.

  • REA only accepts Node.js releases at or above its patched version floors.
  • Test fixtures now match runtime details without changing REA's behavior.

Reviews (6) · Last reviewed commit: "test(mcp): bind HTTP calls to their adve..." · Reviewed by Greptile

Comment thread package.json Resolved
@gensokyo-dev gensokyo-dev changed the title fix(runtime): raise Node.js security floors to 22.23.4, 24.22.1 and 26.12.1 fix(runtime)!: require patched Node.js security releases Oct 23, 2026
@gensokyo-dev
gensokyo-dev merged commit 28a33ca into morluto:main Oct 23, 2026
47 of 48 checks passed
Ambar-13 added a commit to Ambar-13/rea that referenced this pull request Oct 24, 2026
Main (morluto#6315 area, commit 2721650) now asks codesign for the selected
architecture with -a on every inspect_signature query and probes the other
slices only for their signing state. This merge keeps that binding: the
result's fields describe the requested slice, and the per-slice comparison
from this branch runs on top of it.

With -a, codesign reports the requested slice as "Mach-O thin (<arch>)" even
for a universal file (checked against /usr/bin/true on macOS 27), so the
Format line no longer names the other slices. A universal target's slice
names therefore come from lipo -archs, with the target's CPU families as the
fallback when lipo is unavailable; main's own probe loop found no slices on a
real universal file for this reason.

Wording follows main: "Partial signature coverage: ... describe the requested
<arch> architecture; other slices are queried separately", and main's two
"unavailable because codesign reported it unsigned" notes replace this
branch's mixed-signing notes. Other signed slices, differing fields,
requirement hashes and the unsigned-requested-slice case keep their
limitations, now phrased against the requested slice.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@morluto morluto mentioned this pull request Oct 25, 2026
3 tasks done
@morluto

morluto commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Thanks for bringing REA's Node.js requirements up to the patched releases, @ShikamaruNaaraa. Keeping the runtime check, installer and package requirements aligned gives users consistent upgrade guidance when their Node.js version is too old. Welcome to REA!

@morluto morluto added area: runtime Process capture and runtime observation bug Something isn't working security Target-execution safety, isolation, authority, and contamination handling labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working security Target-execution safety, isolation, authority, and contamination handling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raise Node.js runtime floors for the October 2026 security releases

3 participants