Skip to content

fix(runtime): bump bundled Node.js pin to 24.22.2 - #1

Merged
Drolkar-X merged 6 commits into
mainfrom
fix/node-version-pin
Nov 7, 2026
Merged

Drolkar-X merged 6 commits into
mainfrom
fix/node-version-pin

Conversation

@Drolkar-X

@Drolkar-X Drolkar-X commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

改了什么

六条提交(fix / test / docs +两条复核修订+一条文档校订),共 19 个文件、+47 / −44,只动 Node.js 版本钉版与配套文案,无功能逻辑改动:

  • fix(runtime):NodeSources.kt 的 NODE_VERSION、runtime-bundle/build_node.sh、bundle.yaml、scripts/gen_profile.sh、tools 两脚本、Shasums256.kt 注释,统一 24.19.0 → 24.22.2;旧线 Dockerfile 的 22.17.0 一并对齐
  • test:两处测试夹具版本串对齐(只改夹具字符串,未动断言逻辑)
  • docs:THIRD_PARTY_NOTICES、六语种 strings、docs/BUILD_RUNBOOK.md、docs/L4-tools.md 对齐
  • 复核修订与校订(B1 / B2 +文档措辞):NodeSources.kt 陈旧注释修正、docs/L4-tools.md 示例清单加注与自指措辞修正(均为文档与注释,不涉代码逻辑)

显名例外: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 同在受影响范围,一并升至同一版本,消除版本分叉。

怎么验证的

  • 全仓 grep:24.19.0 / 22.17.0 的功能钉版清零(历史记录例外见上)
  • 六个分发源实测:NodeSources 配置的 6 个源均提供 v24.22.2 的 arm64 安装包,且六家 SHASUMS256.txt 中 arm64 条目的校验值与官方逐字一致(sha256 以 eb187837a2230d4 开头)
  • 新版不在 CVE-2026-111497 受影响区间(Node 官方安全发布口径;OSV 对 Node 本体无区间数据,已在待修清单显名)
  • CI:run 42361664021(head a202e5a)=success;唯一 job「build」全部 step 通过(i18n 校验、隐私审计、单测、lint、debug APK、两个 release 变体均在此 job 内),无失败 step。注:本机未能运行 ./gradlew(Gradle 被本机网络权限拦截),构建与单测以 CI 实跑为准。

没做什么 / 已知风险 / 后续建议

  • 未改 build_node.sh 的校验逻辑(那是清单的另一项,单独 PR 处理)
  • 未动任何其他依赖与工具链版本
  • node-pty 预编译产物的 ABI 未在构建机实测(本仓无从锚定,见 docs/L4-tools.md 第 5 节的注)。当前处理:文档显名“未验证”,未改数字。后续:在 WSL2 构建机用目标 Node 跑 node -p process.versions.modules 核对实际 pty.node 的 ABI;若为 127,需用 Node 24 重编,否则运行时 Node 24 加载会 NODE_MODULE_VERSION mismatch。
  • 维护者发版时需按 24.22.2 重新打包运行时层(bundle.yaml 的 sha256/size 由打包脚本回填)

是否影响行为或兼容性

不影响。同大版本(24.x)内的安全升版,只改钉版与文案;运行时下载与 SHASUMS256 校验流程不变。

—— Drolkar X

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 Drolkar-X closed this Nov 7, 2026
@Drolkar-X Drolkar-X reopened this Nov 7, 2026

@Drolkar-X Drolkar-X left a comment •

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复核结论

审的是 head a202e5a(base e9ec1e8,19 文件,+47 / −44)。以下每条都独立复核过,不采信 PR 描述的自述。

通过项

  1. 版本串全部对齐 — 六处功能钉版(NodeSources.NODE_VERSION、build_node.sh、bundle.yaml、gen_profile.sh、tools 两脚本、Shasums256.kt 注释)统一 24.22.2;Dockerfile 的 22.17.0 一并升到 24.22.2。
  2. 全仓搜净 — grep 24.19 / 22.17,仅 docs/TERMINAL_CLI_DETECTION_RECORD.md:24 与 :93 两处历史检测记录,申报例外成立。
  3. 测试只改夹具 — 两处测试文件仅替换版本字符串,断言逻辑未动。
  4. 六源一致 — nodejs 官方与 5 家镜像的 arm64 包均提供 v24.22.2,SHASUMS256 校验值逐字一致(eb187837a2230d4…)。
  5. 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 收录。
  6. bundle.yaml 无陈旧哈希 — node 层 sha256 / size_bytes 为空占位,由 pack_runtime.sh 回填。
  7. 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

@Drolkar-X
Drolkar-X merged commit b643800 into main Nov 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant