Skip to content

[Bug]: agent-server bundles Node 24.22.2, below the 24.22.3 security fix (CERTFR-2026-AVI-1531) #7075

Open

Description

@vchatela

Bug Description

The agent-server image bundles Node 24.22.2, which is below the 24.22.3 security fix for the Node.js 24.x line. The affected range is stated in CERTFR-2026-AVI-1531, sourced from the Node.js November 2026 security releases (2026-11-03): "Node.js versions 24.x prior to 24.22.3". The advisory lists confidentiality impact, security-policy bypass and denial of service across 19 CVEs. Node 24.22.3 has been available since 2026-11-10.

On main and in the released v1.63.1 tag, openhands-agent-server/openhands/agent_server/docker/Dockerfile pins the vulnerable version in both of its Node runtime paths:

  • line 41: FROM node:24.22.2-trixie-slim AS node-runtime (the copy at /usr/local/bin/node)
  • lines 313-315: the ACP runtime downloads node-v24.22.2-linux-${NARCH}.tar.xz into $ACP_NODE_DIR (/acp-node)

The image also ships code-server's own Node at /openhands/.code-server/lib/node, observed as 24.22.1. CODE_SERVER_NODE_MIN_VERSION (24.22.1) is only a floor, and code-server 4.145.0's bundled Node sits exactly on it, so raising the floor alone would fail the build; this path needs either a newer code-server release bundling 24.22.3+ or a bundled-Node replacement like the existing undici block.

agent-canvas inherits both runtime Nodes from this image, so its frontend static server and ACP tool wrappers run on the vulnerable version. I checked: the 1.43.0 canvas image still reports 24.22.2 on /usr/local/bin/node and /acp-node/bin/node.

.github/dependabot.yml has no docker ecosystem entry, so these base-image/tarball pins are not updated automatically and have stayed on 24.22.2 since the advisory was published.

Expected Behavior

The next agent-server build bundles Node >= 24.22.3 in every runtime it ships (/usr/local/bin/node, /acp-node/bin/node, and code-server's bundled Node), and downstream images pick it up on their next release.

Actual Behavior

Bundled runtimes report 24.22.2, and code-server's bundled Node reports 24.22.1.

Steps to Reproduce

docker run --rm ghcr.io/openhands/agent-server:1.63.1-python \
  sh -c 'node --version; /acp-node/bin/node --version; /openhands/.code-server/lib/node --version'
# v24.22.2
# v24.22.2
# v24.22.1

Acceptance Criteria

  • /usr/local/bin/node and /acp-node/bin/node report >= 24.22.3
  • code-server's bundled Node reports >= 24.22.3 (newer code-server release, replacement step, or an updated floor)
  • a new agent-server image is published and a downstream agent-canvas release consuming it is cut

SDK Version

agent-server 1.63.1-python (bundled by OpenHands agent-canvas 1.43.0). The same pins are present on main as of 2026-11-23.

Installation Method

Docker image ghcr.io/openhands/agent-server:1.63.1-python, and the agent-canvas image built on it.

Evidence and Additional Context


OpenHands AI triage

The following comments and acceptance criteria were added by the OpenHands AI agent.

Triage

Verified against main and live sources on 2026-11-23: openhands-agent-server/openhands/agent_server/docker/Dockerfile pins Node 24.22.2 in both runtime paths (node:24.22.2-trixie-slim base stage and the node-v24.22.2-linux-*.tar.xz downloads), while node:24.22.3-trixie-slim and https://nodejs.org/dist/v24.22.3/ (published 2026-11-10, past this repository's seven-day dependency observation window) are available. The base-image and tarball paths bump to 24.22.3.

For code-server's bundled Node: no released code-server ships Node >= 24.22.3 today. code-server v4.146.0 (2026-11-20, the newest release) bundles Node v24.22.1 — verified by extracting and executing lib/node from its release tarball — so raising CODE_SERVER_VERSION alone cannot fix this path. The Dockerfile already contains the repository's authoritative mechanism for exactly this situation: the self-retiring undici floor-and-replacement block. This path must reuse that pattern: raise CODE_SERVER_NODE_MIN_VERSION to 24.22.3 and replace the bundled Node binary with a release-published, per-architecture SHA-256-verified copy when the bundled version is below the floor, self-retiring once upstream ships >= the floor.

Scope: the agent-server Dockerfile in this repository and its published images. Non-goals: cutting agent-canvas releases or other downstream pick-up (Agent Canvas is owned by OpenHands/OpenHands per the cross-repo boundaries in AGENTS.md — its next release inherits the fixed image); adding a Dependabot docker ecosystem entry (.github/workflows/update-version-pins.yml is the deliberate single home for pin refreshers and Node pins are documented as hand-refreshed); changes beyond the three bundled Node runtimes (/usr/local/bin/node, /acp-node/bin/node, code-server's /openhands/.code-server/lib/node).

Acceptance Criteria

  • In an image built from the updated Dockerfile (default python variant) on linux/amd64 and linux/arm64, node --version, /acp-node/bin/node --version, and /openhands/.code-server/lib/node --version each report v24.22.3 or higher
  • No 24.22.2 pins remain in the agent-server Dockerfile, and the existing pin-drift guard tests/cross/test_agent_server_build_metadata.py::test_agent_server_runtime_pins_cannot_drift_between_sites passes, confirming one Node version across the base-image and tarball sites
  • The python variant image build succeeds while code-server 4.145.0 still bundles Node v24.22.1, via the existing floor-and-replacement mechanism (undici precedent) with a release-published per-architecture SHA-256 verified for any downloaded replacement binary
  • The existing guards test_agent_server_code_server_block_uses_floors_not_exact_pins and test_agent_server_node_pin_clears_every_declared_engine_floor still pass unchanged (code-server checks remain floors, not exact pins, and the ACP Node pin still clears every declared min_node_version)
  • A newly published agent-server python image from main on GHCR (published automatically by .github/workflows/server.yml on push) reports v24.22.3 or higher for all three runtime paths on amd64 and arm64

Activity

  1. added
    priority:high
    ready-for-dev
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:highready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions