Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ FROM node:24.22.1-trixie-slim@sha256:43b9ba1142b8dcf33fa8f922ca1be85714adc444e05

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential=12.12 \
ca-certificates=20250419 \
ca-certificates=20250419+deb13u1 \
curl=8.14.1-2+deb13u7 \
git=1:2.47.3-0+deb13u1 \
libssl-dev=3.5.7-1~deb13u3 \
libssl3t64=3.5.7-1~deb13u3 \
openssh-server=1:10.0p1-7+deb13u4 \
xz-utils=5.8.1-1+deb13u1 \
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+b1 \
xz-utils=5.8.1-1+deb13u2 \
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+deb13u1 \
&& rm -rf /var/lib/apt/lists/*

COPY scripts/security/build-native-security-packages.sh /scripts/security/build-native-security-packages.sh
Expand Down Expand Up @@ -134,14 +134,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
curl=8.14.1-2+deb13u7 \
git=1:2.47.3-0+deb13u1 \
gnupg=2.4.7-21+deb13u1 \
ca-certificates=20250419 \
ca-certificates=20250419+deb13u1 \
iproute2=6.15.0-1 \
iptables=1.8.11-2 \
nftables=1.1.3-1 \
libcap2-bin=1:2.75-10+deb13u1+b3 \
libssl3t64=3.5.7-1~deb13u3 \
libc6=2.41-12+deb13u4 \
libc-bin=2.41-12+deb13u4 \
libc6=2.41-12+deb13u5 \
libc-bin=2.41-12+deb13u5 \
bsdutils=1:2.41.5-0+deb13u1 \
login=1:4.16.0-2+really2.41.5-0+deb13u1 \
mount=2.41.5-0+deb13u1 \
Expand Down Expand Up @@ -706,7 +706,7 @@ RUN if [ "$OPENCLAW_VERSION" = "2026.7.1" ]; then \
# OpenClaw Standard Verify pull-request check when a Homebrew bump stops
# honouring it.
# - HOMEBREW_NO_ENV_HINTS: keeps install output short.
ARG HOMEBREW_VERSION=7.0.12
ARG HOMEBREW_VERSION=7.0.16
RUN mkdir -p /home/linuxbrew/.linuxbrew/bin \
&& chown -R sandbox:sandbox /home/linuxbrew \
&& /usr/bin/setpriv --reuid=sandbox --regid=sandbox --init-groups -- \
Expand Down
19 changes: 17 additions & 2 deletions Dockerfile.tools
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ ADD --checksum=sha256:5c5ba2724c162f82d0a0c71b6c03224ed44f8bef7b14ace5da0635d3af
ADD --checksum=sha256:1dc21c3dd6d948929e22e5cae49b9d0b3b30ff88fafd4493fd4460c6252e9d90 \
https://github.com/pimalaya/himalaya/releases/download/v2.2.1/himalaya.aarch64-linux.tgz /himalaya-arm64.tgz

# libc6-dev must match the base image's libc6 exactly. Debian has replaced
# 2.41-12+deb13u4 in the archive, so fetch it from the snapshot archive for the
# perl-modules stage. Update these with the base image's libc6 version.
ADD --checksum=sha256:1fda734dabcd80b77266a09ab62b0f1e3e16d8091db62899890b2200745632a2 \
https://snapshot.debian.org/archive/debian/20260711T202405Z/pool/main/g/glibc/libc6-dev_2.41-12%2Bdeb13u4_amd64.deb /libc6-dev-amd64.deb
ADD --checksum=sha256:71e373cb5e9da975b02fb4af555929cb1977560e2dd8245de4eb8a7b03677a08 \
https://snapshot.debian.org/archive/debian/20260711T202405Z/pool/main/g/glibc/libc6-dev_2.41-12%2Bdeb13u4_arm64.deb /libc6-dev-arm64.deb
ADD --checksum=sha256:2c21175d6a8283ed566d154c0c0bc06f60836e53b0b9e1f74c14eac586b68c24 \
https://snapshot.debian.org/archive/debian/20260711T202405Z/pool/main/g/glibc/libc-dev-bin_2.41-12%2Bdeb13u4_amd64.deb /libc-dev-bin-amd64.deb
ADD --checksum=sha256:cd4b3bdf404a01792003f4ca400bc602252ab24e0a8c53e45d474d1818dc02e3 \
https://snapshot.debian.org/archive/debian/20260711T202405Z/pool/main/g/glibc/libc-dev-bin_2.41-12%2Bdeb13u4_arm64.deb /libc-dev-bin-arm64.deb

# The yq 4.54.1 release binaries use Go 1.27.1 and golang.org/x/net 0.59.0,
# which have HIGH vulnerabilities with available fixes. Build the same yq version with a
# patched Go toolchain and x/net. Go verifies module hashes with sumdb.
Expand All @@ -57,12 +69,15 @@ USER root
ADD --checksum=sha256:abded5f4fdd9338e89fd2f1d8271c44989dae5bf50aece41b6179d8e230704f8 \
https://cpan.metacpan.org/authors/id/K/KU/KUBOTA/Text-CharWidth-0.04.tar.gz /tmp/Text-CharWidth-0.04.tar.gz
# hadolint ignore=DL3003,DL3008
RUN set -eu; \
RUN --mount=type=bind,from=downloads,target=/downloads \
set -eu; \
while IFS='=' read -r pkg _; do \
[ "$pkg" = architecture ] || apt-mark hold "$pkg" >/dev/null; \
done </usr/local/share/nemoclaw/security-packages.txt; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc make libc6-dev dpkg-dev; \
arch="$(dpkg --print-architecture)"; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc make dpkg-dev \
"/downloads/libc6-dev-$arch.deb" "/downloads/libc-dev-bin-$arch.deb"; \
mkdir -p /tmp/charwidth /tmp/stage/DEBIAN /out; \
tar -xzf /tmp/Text-CharWidth-0.04.tar.gz --strip-components=1 -C /tmp/charwidth; \
cd /tmp/charwidth; \
Expand Down
10 changes: 5 additions & 5 deletions agents/hermes-01x/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ FROM node:24.22.1-trixie-slim@sha256:43b9ba1142b8dcf33fa8f922ca1be85714adc444e05

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential=12.12 \
ca-certificates=20250419 \
ca-certificates=20250419+deb13u1 \
curl=8.14.1-2+deb13u7 \
git=1:2.47.3-0+deb13u1 \
libssl-dev=3.5.7-1~deb13u3 \
openssh-server=1:10.0p1-7+deb13u4 \
xz-utils=5.8.1-1+deb13u2 \
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+b1 \
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+deb13u1 \
&& rm -rf /var/lib/apt/lists/*

COPY scripts/security/build-native-security-packages.sh /scripts/security/build-native-security-packages.sh
Expand Down Expand Up @@ -107,14 +107,14 @@ RUN --mount=type=bind,source=scripts/security/security-package-inventory.mts,tar
curl=8.14.1-2+deb13u7 \
git=1:2.47.3-0+deb13u1 \
gnupg=2.4.7-21+deb13u1 \
ca-certificates=20250419 \
ca-certificates=20250419+deb13u1 \
iproute2=6.15.0-1 \
iptables=1.8.11-2 \
nftables=1.1.3-1 \
libcap2-bin=1:2.75-10+deb13u1+b3 \
libssl3t64=3.5.7-1~deb13u3 \
libc6=2.41-12+deb13u4 \
libc-bin=2.41-12+deb13u4 \
libc6=2.41-12+deb13u5 \
libc-bin=2.41-12+deb13u5 \
bsdutils=1:2.41.5-0+deb13u1 \
login=1:4.16.0-2+really2.41.5-0+deb13u1 \
mount=2.41.5-0+deb13u1 \
Expand Down
19 changes: 17 additions & 2 deletions agents/hermes-01x/Dockerfile.tools
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ ADD --checksum=sha256:5c5ba2724c162f82d0a0c71b6c03224ed44f8bef7b14ace5da0635d3af
ADD --checksum=sha256:1dc21c3dd6d948929e22e5cae49b9d0b3b30ff88fafd4493fd4460c6252e9d90 \
https://github.com/pimalaya/himalaya/releases/download/v2.2.1/himalaya.aarch64-linux.tgz /himalaya-arm64.tgz

# libc6-dev must match the base image's libc6 exactly. Debian has replaced
# 2.41-12+deb13u4 in the archive, so fetch it from the snapshot archive for the
# perl-modules stage. Update these with the base image's libc6 version.
ADD --checksum=sha256:1fda734dabcd80b77266a09ab62b0f1e3e16d8091db62899890b2200745632a2 \
https://snapshot.debian.org/archive/debian/20260711T202405Z/pool/main/g/glibc/libc6-dev_2.41-12%2Bdeb13u4_amd64.deb /libc6-dev-amd64.deb
ADD --checksum=sha256:71e373cb5e9da975b02fb4af555929cb1977560e2dd8245de4eb8a7b03677a08 \
https://snapshot.debian.org/archive/debian/20260711T202405Z/pool/main/g/glibc/libc6-dev_2.41-12%2Bdeb13u4_arm64.deb /libc6-dev-arm64.deb
ADD --checksum=sha256:2c21175d6a8283ed566d154c0c0bc06f60836e53b0b9e1f74c14eac586b68c24 \
https://snapshot.debian.org/archive/debian/20260711T202405Z/pool/main/g/glibc/libc-dev-bin_2.41-12%2Bdeb13u4_amd64.deb /libc-dev-bin-amd64.deb
ADD --checksum=sha256:cd4b3bdf404a01792003f4ca400bc602252ab24e0a8c53e45d474d1818dc02e3 \
https://snapshot.debian.org/archive/debian/20260711T202405Z/pool/main/g/glibc/libc-dev-bin_2.41-12%2Bdeb13u4_arm64.deb /libc-dev-bin-arm64.deb

# The yq 4.54.1 release binaries use Go 1.27.1 and golang.org/x/net 0.59.0,
# which have HIGH vulnerabilities with available fixes. Build the same yq version with a
# patched Go toolchain and x/net. Go verifies module hashes with sumdb.
Expand All @@ -71,12 +83,15 @@ USER root
ADD --checksum=sha256:abded5f4fdd9338e89fd2f1d8271c44989dae5bf50aece41b6179d8e230704f8 \
https://cpan.metacpan.org/authors/id/K/KU/KUBOTA/Text-CharWidth-0.04.tar.gz /tmp/Text-CharWidth-0.04.tar.gz
# hadolint ignore=DL3003,DL3008
RUN set -eu; \
RUN --mount=type=bind,from=downloads,target=/downloads \
set -eu; \
while IFS='=' read -r pkg _; do \
[ "$pkg" = architecture ] || apt-mark hold "$pkg" >/dev/null; \
done </usr/local/share/nemoclaw/security-packages.txt; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc make libc6-dev dpkg-dev; \
arch="$(dpkg --print-architecture)"; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc make dpkg-dev \
"/downloads/libc6-dev-$arch.deb" "/downloads/libc-dev-bin-$arch.deb"; \
mkdir -p /tmp/charwidth /tmp/stage/DEBIAN /out; \
tar -xzf /tmp/Text-CharWidth-0.04.tar.gz --strip-components=1 -C /tmp/charwidth; \
cd /tmp/charwidth; \
Expand Down
10 changes: 5 additions & 5 deletions agents/hermes/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ FROM node:24.22.1-trixie-slim@sha256:43b9ba1142b8dcf33fa8f922ca1be85714adc444e05

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential=12.12 \
ca-certificates=20250419 \
ca-certificates=20250419+deb13u1 \
curl=8.14.1-2+deb13u7 \
git=1:2.47.3-0+deb13u1 \
libssl-dev=3.5.7-1~deb13u3 \
openssh-server=1:10.0p1-7+deb13u4 \
xz-utils=5.8.1-1+deb13u2 \
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+b1 \
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+deb13u1 \
&& rm -rf /var/lib/apt/lists/*

COPY scripts/security/build-native-security-packages.sh /scripts/security/build-native-security-packages.sh
Expand Down Expand Up @@ -107,14 +107,14 @@ RUN --mount=type=bind,source=scripts/security/security-package-inventory.mts,tar
curl=8.14.1-2+deb13u7 \
git=1:2.47.3-0+deb13u1 \
gnupg=2.4.7-21+deb13u1 \
ca-certificates=20250419 \
ca-certificates=20250419+deb13u1 \
iproute2=6.15.0-1 \
iptables=1.8.11-2 \
nftables=1.1.3-1 \
libcap2-bin=1:2.75-10+deb13u1+b3 \
libssl3t64=3.5.7-1~deb13u3 \
libc6=2.41-12+deb13u4 \
libc-bin=2.41-12+deb13u4 \
libc6=2.41-12+deb13u5 \
libc-bin=2.41-12+deb13u5 \
bsdutils=1:2.41.5-0+deb13u1 \
login=1:4.16.0-2+really2.41.5-0+deb13u1 \
mount=2.41.5-0+deb13u1 \
Expand Down
12 changes: 6 additions & 6 deletions agents/langchain-deepagents-code/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ ARG NEMOCLAW_CORPORATE_CA_B64
# hadolint ignore=DL4006
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential=12.12 \
ca-certificates=20250419 \
ca-certificates=20250419+deb13u1 \
curl=8.14.1-2+deb13u7 \
git=1:2.47.3-0+deb13u1 \
libssl-dev=3.5.7-1~deb13u3 \
libssl3t64=3.5.7-1~deb13u3 \
openssh-server=1:10.0p1-7+deb13u4 \
xz-utils=5.8.1-1+deb13u1 \
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+b1 \
xz-utils=5.8.1-1+deb13u2 \
zlib1g-dev=1:1.3.dfsg+really1.3.1-1+deb13u1 \
&& if [ -n "${NEMOCLAW_CORPORATE_CA_B64:-}" ]; then \
install -d -o root -g root -m 0755 /usr/local/share/nemoclaw /usr/local/share/ca-certificates; \
{ printf '%s' "${NEMOCLAW_CORPORATE_CA_B64}" | base64 --decode > /usr/local/share/nemoclaw/corporate-ca.pem 2>/dev/null \
Expand Down Expand Up @@ -98,14 +98,14 @@ RUN --mount=type=bind,source=scripts/security/security-package-inventory.mts,tar
python3-venv=3.13.5-1 \
curl=8.14.1-2+deb13u7 \
git=1:2.47.3-0+deb13u1 \
ca-certificates=20250419 \
ca-certificates=20250419+deb13u1 \
iproute2=6.15.0-1 \
iptables=1.8.11-2 \
nftables=1.1.3-1 \
libcap2-bin=1:2.75-10+deb13u1+b3 \
libssl3t64=3.5.7-1~deb13u3 \
libc6=2.41-12+deb13u4 \
libc-bin=2.41-12+deb13u4 \
libc6=2.41-12+deb13u5 \
libc-bin=2.41-12+deb13u5 \
bsdutils=1:2.41.5-0+deb13u1 \
login=1:4.16.0-2+really2.41.5-0+deb13u1 \
mount=2.41.5-0+deb13u1 \
Expand Down
19 changes: 1 addition & 18 deletions ci/trivy-standard-image-exceptions.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
{
"schemaVersion": 1,
"exceptions": [
{
"vulnerability": "CVE-2026-33210",
"package": "json",
"installedVersion": "2.18.0",
"severity": "CRITICAL",
"pkgPath": "home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/4.0.9/lib/ruby/gems/4.0.0/specifications/default/json-2.18.0.gemspec",
"decision": "not-affected",
"owner": "derekhsu",
"expires": "2026-12-03",
"trackingIssue": "https://github.com/NVIDIA/NemoClaw/issues/14092",
"rationale": "json 2.18.0 is a default gem of Homebrew 7.0.12's portable Ruby 4.0.9, and Homebrew main ships the same portable Ruby. GHSA-3m6g-2423-7cp3 applies only when a caller parses with `allow_duplicate_key: false`; Homebrew 7.0.12 passes only `allow_duplicate_key: true` (livecheck/strategy/json.rb). Remove this entry when Homebrew bumps portable Ruby to a release with json 2.19.2 or later.",
"compensatingControls": [
"Homebrew and its portable Ruby run as the unprivileged sandbox user inside the OpenShell Landlock and network policy.",
"The OpenClaw Standard Verify gate fails when this entry expires or no longer matches a finding."
]
}
]
"exceptions": []
}
9 changes: 7 additions & 2 deletions docs/modification/2026-10-31-openclaw-tools-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Debian 套件在 amd64 與 arm64 上的版本相同。
| PDF 與轉檔 | `pandoc 3.1.11.1+ds-2`、`poppler-utils 25.03.0-5+deb13u4`、`qpdf 12.2.0-1`、`ghostscript 10.05.1~dfsg-1+deb13u3` |
| OCR | `tesseract-ocr 5.5.0-1+b1`;語言資料 `eng`、`chi-tra`、`chi-sim` `1:4.1.0-2` |
| 圖片與影音 | `imagemagick 8:7.1.1.43+dfsg1-1+deb13u14`(提供 `magick`)、`ffmpeg 7:7.1.5-0+deb13u1`(含 `ffprobe`)、`libimage-exiftool-perl 13.25+dfsg-1` |
| 瀏覽器 | `chromium 156.0.8078.79-1~deb13u1`,固定在 `apt-packages-browser.txt` |
| 瀏覽器 | `chromium`、`chromium-common` `156.0.8078.108-1~deb13u1`,固定在 `apt-packages-browser.txt` |
| 字型 | `fontconfig 2.15.0-2.3`、`fonts-noto-cjk 1:20240730+repack1-1`、`fonts-liberation 1:2.1.5-3`、`fonts-dejavu-core 2.37-8` |
| Workspace | `zip 3.0-15+deb13u1`、`unzip 6.0-29+deb13u1`、`ripgrep 14.1.1-1+b4`、`sqlite3 3.46.1-7+deb13u2` |
| 執行期函式庫 | `libicu76 76.1-4`(officecli 需要) |
Expand All @@ -83,6 +83,7 @@ Debian 套件在 amd64 與 arm64 上的版本相同。
| yq(Mike Farah) | 4.54.1 | amd64、arm64;以 Go 1.27.4 與 `golang.org/x/net` 0.62.0 從原始碼建置 |
| p5.js(`p5.min.js`) | 1.7.0 | 不分架構 |
| Text-CharWidth 原始碼 | 0.04 | 建置階段重新編譯,見 6.3 節 |
| `libc6-dev`、`libc-dev-bin` | `2.41-12+deb13u4` | amd64、arm64;只用於編譯 Text::CharWidth,見 6.3 節 |
| pnpm | 12.16.1 | 不分架構 |
| Chrome Headless Shell | 156.0.8078.4(Playwright revision 1248) | amd64、arm64 |
| shadcn 元件 | `anthropics/skills` 固定 revision 的 `web-artifacts-builder` | 不分架構;Apache-2.0,授權檔在模板內 |
Expand Down Expand Up @@ -282,7 +283,11 @@ Debian `0.04-11` 沒有原始碼修補,只多了 hardening 旗標、`dh_perl -d`
重新編譯使用 `dpkg-buildflags` 的 hardening 設定。
最終映像只複製編譯好的套件,不含編譯器。

更新 base 的 Perl 版本時,必須重新檢查這個步驟。
編譯需要 `libc6-dev`,版本必須與 base 映像的 `libc6` 完全相同。
Debian 套件庫現在只提供 `2.41-12+deb13u5`,而 tools 映像使用的已發布 base 映像,`libc6` 仍是 `2.41-12+deb13u4`。
因此這個 stage 從 `snapshot.debian.org` 下載 `2.41-12+deb13u4` 的 `libc6-dev` 與 `libc-dev-bin`,並以 SHA-256 校驗(#85)。

更新 tools 映像使用的 base 映像(Perl 或 `libc6` 版本)時,必須重新檢查這個步驟。

## 7. 發布與選用

Expand Down
12 changes: 9 additions & 3 deletions docs/security/openclaw-2026.9.2-dependency-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,19 +335,25 @@ The OpenClaw Standard Verify scan of the r4 candidate reports one new fixable fi
| --- | --- | --- | --- |
| `CVE-2026-33210` (CRITICAL, GHSA-3m6g-2423-7cp3) | `json` `2.18.0` default gem | `/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/4.0.9/` | `2.19.2` |

Homebrew `7.0.12` and Homebrew `main` both ship portable Ruby `4.0.9`, so no Homebrew release contains the fix.
At r4, Homebrew `7.0.12` and Homebrew `main` both shipped portable Ruby `4.0.9`, so no Homebrew release contained the fix.
The advisory applies only when a caller parses JSON with `allow_duplicate_key: false`.
Homebrew `7.0.12` passes only `allow_duplicate_key: true`, in `Library/Homebrew/livecheck/strategy/json.rb`.

`ci/trivy-standard-image-exceptions.json` records a `not-affected` exception for this finding.
`ci/trivy-standard-image-exceptions.json` recorded a `not-affected` exception for this finding until Homebrew `7.0.16` (#85).
`scripts/security/reject-fixable-trivy-findings.sh` applies it with these rules:

- An entry matches one finding exactly: vulnerability ID, package, installed version, severity, and package path.
- An entry expires within 30 days and records an owner, a NemoClaw tracking issue, a rationale, and compensating controls.
- A malformed, duplicate, expired, or unused entry fails the gate.
- Every other fixable CRITICAL or HIGH finding still fails the gate.

Remove the entry when Homebrew ships a portable Ruby with `json` `2.19.2` or later, and bump `HOMEBREW_VERSION` to that release.
### Homebrew 7.0.16 (#85)

Homebrew `7.0.16` ships portable Ruby `4.0.10`, which carries `json` `3.1.0` and `msgpack` `1.8.7`.
`Dockerfile.base` now pins `HOMEBREW_VERSION=7.0.16`, and `ci/trivy-standard-image-exceptions.json` no longer holds the `CVE-2026-33210` entry.

The bump also fixes `CVE-2026-126366` (HIGH) in `msgpack` `1.8.5`, which portable Ruby `4.0.9` carries.
The OpenClaw Standard Verify scan reported it on November 24, 2026.

## Debian zlib and apt Updates

Expand Down
15 changes: 9 additions & 6 deletions scripts/security/standalone-security-package-inventory.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ const CURRENT_PYTHON_HTMLPARSER_FIX_PACKAGE =
"nemoclaw-python3.13-htmlparser-fix=3.13.5-2+deb13u5+nemoclaw1";
const PINNED_HERMES_BASE_PYTHON_HTMLPARSER_FIX_PACKAGE =
"nemoclaw-python3.13-htmlparser-fix=3.13.5-2+deb13u4+nemoclaw1";
// The digest-pinned Hermes sandbox base predates these Debian updates.
const PINNED_HERMES_BASE_SECURITY_PACKAGE_OVERRIDES: ReadonlyMap<string, string> = new Map([
[CURRENT_PYTHON_HTMLPARSER_FIX_PACKAGE, PINNED_HERMES_BASE_PYTHON_HTMLPARSER_FIX_PACKAGE],
["libc6=2.41-12+deb13u5", "libc6=2.41-12+deb13u4"],
["libc-bin=2.41-12+deb13u5", "libc-bin=2.41-12+deb13u4"],
]);
const SHARED_LIBEXPAT_PACKAGE = "libexpat1=2.8.3-1";
// Only the OpenClaw base installs the Debian security update (#19).
const OPENCLAW_LIBEXPAT_PACKAGE = "libexpat1=2.9.0-1~deb13u1";
Expand All @@ -20,8 +26,8 @@ const OPENCLAW_SECURITY_PACKAGE_OVERRIDES: ReadonlyMap<string, string> = new Map

const SANDBOX_BASE_SECURITY_PACKAGE_INVENTORY = [
SHARED_ZLIB_PACKAGE,
"libc6=2.41-12+deb13u4",
"libc-bin=2.41-12+deb13u4",
"libc6=2.41-12+deb13u5",
"libc-bin=2.41-12+deb13u5",
"bsdutils=1:2.41.5-0+deb13u1",
"login=1:4.16.0-2+really2.41.5-0+deb13u1",
"mount=2.41.5-0+deb13u1",
Expand All @@ -48,10 +54,7 @@ const SANDBOX_BASE_SECURITY_PACKAGE_INVENTORY = [
] as const;

const PINNED_HERMES_BASE_SECURITY_PACKAGE_INVENTORY = SANDBOX_BASE_SECURITY_PACKAGE_INVENTORY.map(
(packageSpec) =>
packageSpec === CURRENT_PYTHON_HTMLPARSER_FIX_PACKAGE
? PINNED_HERMES_BASE_PYTHON_HTMLPARSER_FIX_PACKAGE
: packageSpec,
(packageSpec) => PINNED_HERMES_BASE_SECURITY_PACKAGE_OVERRIDES.get(packageSpec) ?? packageSpec,
);

const OPENCLAW_SANDBOX_BASE_SECURITY_PACKAGE_INVENTORY = [
Expand Down
Loading
Loading