Repository navigation
fix(runtime): bump bundled Node.js pin to 24.22.2 - #1
Merged
Merged
Conversation
24.19.0 is affected by CVE-2026-111497 (Brotli decoder out-of-bounds write, listed in the CISA KEV catalog). Unify all functional pins, including the legacy Dockerfile line (was 22.17.0), on 24.22.2.
Fixture strings only; no assertion logic changed.
Runbook, layer spec, third-party notices and the runtime-import confirmation copy in all six locales. The dated detection record docs/TERMINAL_CLI_DETECTION_RECORD.md is a historical run log and intentionally keeps the version it measured.
The NodeSources version-baseline comment cited docs/RUNTIME_LAYERS.md, which does not exist in this repository. Keep only the build_node.sh reference. Audit follow-up B2 on PR #1.
The manifest JSON is an example only: the file is not in the repo and no code reads it. Its node-pty abi value (127) cannot be derived from this repo's build chain (node-pty is compiled out-of-repo on a WSL2 machine inside the DSH source tree) and has not been measured; the note states it must be checked on the build machine with the target Node via process.versions.modules. The value itself is unchanged. Audit follow-up B1 on PR #1.
Drolkar-X
commented
Nov 7, 2026
Owner
Author
There was a problem hiding this comment.
复核结论
审的是 head a202e5a(base e9ec1e8,19 文件,+47 / −44)。以下每条都独立复核过,不采信 PR 描述的自述。
通过项
- 版本串全部对齐 — 六处功能钉版(
NodeSources.NODE_VERSION、build_node.sh、bundle.yaml、gen_profile.sh、tools 两脚本、Shasums256.kt注释)统一 24.22.2;Dockerfile 的 22.17.0 一并升到 24.22.2。 - 全仓搜净 — grep
24.19/22.17,仅docs/TERMINAL_CLI_DETECTION_RECORD.md:24与:93两处历史检测记录,申报例外成立。 - 测试只改夹具 — 两处测试文件仅替换版本字符串,断言逻辑未动。
- 六源一致 — nodejs 官方与 5 家镜像的 arm64 包均提供 v24.22.2,SHASUMS256 校验值逐字一致(
eb187837a2230d4…)。 - CVE 事实成立 — CVE-2026-111497 影响 Node
<22.23.4、23.0.0–24.22.1、25.0.0–26.12.1;24.19.0 在列,24.22.2 已修;CISA KEV 2026-10-27 收录。 - bundle.yaml 无陈旧哈希 — node 层
sha256/size_bytes为空占位,由pack_runtime.sh回填。 - CI — run 42361664021 全绿(单测、lint、debug 与两个 release 变体均在 build job 内)。
风险项(已在描述显名)
- node-pty ABI:
docs/L4-tools.md示例清单仍写"abi": 127(Node 24 应为 137)。该清单未入库、代码不读取,属文档描述;已在文档加注“未验证”,未改数字。后续需在构建机用目标 Node 实跑node -p process.versions.modules,若为 127 需重编pty.node。
结论:通过,可合。
—— Drolkar-X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
六条提交(fix / test / docs +两条复核修订+一条文档校订),共 19 个文件、+47 / −44,只动 Node.js 版本钉版与配套文案,无功能逻辑改动:
显名例外:docs/TERMINAL_CLI_DETECTION_RECORD.md 中两处 24.19.0 未改——那是带日期的历史检测记录,记的是当时实测版本,改动等于篡改历史。
为什么
清单 #1(P0):随包 Node 24.19.0 命中 CVE-2026-111497(Brotli 解码越界写,高危,可达远程代码执行),已被 CISA KEV 收录(在野利用),且有针对 arm64 的公开利用代码。Node 是本应用中智能体与插件代码的执行引擎,属最高优先级。
修复线下限 24.22.1;本次目标 24.22.2(当前最新 24.x,含上述修复)。旧构建线 Dockerfile 钉的 22.17.0 同在受影响范围,一并升至同一版本,消除版本分叉。
怎么验证的
没做什么 / 已知风险 / 后续建议
node -p process.versions.modules核对实际 pty.node 的 ABI;若为 127,需用 Node 24 重编,否则运行时 Node 24 加载会 NODE_MODULE_VERSION mismatch。是否影响行为或兼容性
不影响。同大版本(24.x)内的安全升版,只改钉版与文案;运行时下载与 SHASUMS256 校验流程不变。
—— Drolkar X