Repository navigation
build(deps): update Node, ws and the runtime image for new advisories - #18
Merged
Merged
Conversation
added 6 commits
November 30, 2026 14:10
ws 8.18.3 is affected by CVE-2026-48779 (high). 8.21.0 is the first fixed 8.x release. The bridge uses WebSocketServer, send and readyState, which 8.21.0 keeps unchanged; the bridge tests pass.
Move .nvmrc, the engines field, the README and both Dockerfile stages to Node 26.13.1. The pinned node:26.13.1-bookworm-slim image was built on 2026-11-24 from the current Debian 12 slim base, so it includes the Debian security updates published since the 26.12.1 image of 2026-10-28.
The node base image ships npm 11.20.0 with brace-expansion 5.0.9 (CVE-2026-102276) and undici 6.28.0 (CVE-2026-109383). Node 26.13.1 bundles the same npm. The runtime stage starts the bridge with node and never calls npm or npx, so delete them there; the build stage keeps npm to install pnpm.
The node:26.13.1-bookworm-slim image still has libpam 1.5.2-6+deb12u2 (CVE-2025-6020) and libzstd1 1.5.4+dfsg2-5 (CVE-2026-124851); Debian has published fixed packages for both. Upgrade installed packages in the runtime stage, as the Gatepost build image does, and note it in the changelogs.
The remaining findings in the Debian 12 base are marked affected, fix deferred or will not fix, so no package update can clear them and every pull request would fail. Ignore unfixed findings, as the Gatepost release scan already does; high and critical findings with a fixed version still fail CI.
Author
|
Mateo Rossi · reviewer Does anything in the runtime container still call npm or npx, for example the health check or the entrypoint? 运行容器里还有地方调用 npm 或 npx 吗?比如健康检查或入口脚本。 |
Author
|
Yuki Tanaka · author No. The entrypoint runs 没有。入口脚本运行 |
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.
Why
The Trivy step in CI now fails on the container image. New high-severity advisories cover the Debian 12 packages in the
node:26.12.1-bookworm-slimbase image, the npm copy that ships with Node (brace-expansion 5.0.9, undici 6.28.0) and ws 8.18.3 in the bridge.What changed
WebSocketServer,sendandreadyState, which are unchanged..nvmrc,engines, both READMEs and both Dockerfile stages. The pinned image was built on 2026-11-24 from the current Debian 12 slim base.node; the build stage keeps npm to install pnpm.ignore-unfixed: trueon the Trivy step, as the Gatepost release scan already does. The 33 findings left in the Debian 12 base are marked affected, fix deferred or will not fix, so no update can clear them. High and critical findings with a fixed version still fail CI.How to verify
The last command prints
npm not installed. CI runs the browser test, the SBOM and the Trivy scan on the same image.背景
CI 中的 Trivy 扫描现在在容器镜像上失败。新公布的高危漏洞涉及
node:26.12.1-bookworm-slim基础镜像里的 Debian 12 软件包、Node 自带的 npm(brace-expansion 5.0.9、undici 6.28.0),以及 bridge 使用的 ws 8.18.3。改动
WebSocketServer、send和readyState没有变化。.nvmrc、engines、中英文 README 和 Dockerfile 的两个阶段。固定的镜像构建于 2026-11-24,基于当前的 Debian 12 slim。node启动;构建阶段仍保留 npm,用来安装 pnpm。ignore-unfixed: true,与 Gatepost 发布扫描一致。Debian 12 基础镜像里剩下的 33 条漏洞状态为 affected、fix deferred 或 will not fix,升级无法清除。有修复版本的高危和严重漏洞仍会让 CI 失败。怎么验证
最后一条命令输出
npm not installed。CI 会在同一个镜像上运行浏览器测试、生成 SBOM 并做 Trivy 扫描。