Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.
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
2 changes: 1 addition & 1 deletion .github/workflows/build-enm-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Set up Node 20
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '24.22.1'
cache: 'npm'
# Two lockfiles feed this build: enm-server (for the runtime deps that
# ship inside the bundle) and pc2-node (for the build-time `tar` package
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pc2-node-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '24.22.1'

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ jobs:
# Pin Node to a version we actually support. pc2-node/package.json
# declares engines.node >=20.18.0; we pick the latest 20.x to match
# what a fresh user install of nvm or Node-via-Homebrew would land on.
- name: Setup Node.js 20.x
- name: Setup Node.js 24.22.1
uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '24.22.1'

# Cache npm + yarn at home dir level. Speeds up successive runs from
# ~6 min install down to ~90 s once the cache is warm. The cache key
Expand Down Expand Up @@ -973,7 +973,7 @@ jobs:
echo "::group::Node.js 20.x via NodeSource"
# NodeSource is the documented Debian install path for Node 20.
# Pi OS users following our README will hit this same script.
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
curl -fsSL https://deb.nodesource.com/setup_24.x | bash -
apt-get install -y --no-install-recommends nodejs
echo "::endgroup::"

Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@

---

## [v1.4.4] - 2026-10-21 - Node.js October security release

Node.js fixed a HIGH-severity Brotli decoder out-of-bounds write (CVE-2026-111497) that any Brotli-encoded `fetch` response can reach. The fix is only in Node 24.22.1, 22.23.4 and 26.12.1; Node 20, which most PC2 nodes run, gets none. This release protects nodes on any Node version and moves new installs to Node 24.

- pc2-node no longer asks servers for Brotli, and refuses a Brotli-encoded response before Node decodes it. This covers every outbound `fetch`, including agent HTTP requests.
- Docker images use `node:24.22.1`. The ARM, WSL and local installers and the supernode bootstrap install Node 24, and CI builds on 24.22.1.
- enm-server's fallback Node download is v24.22.1 instead of the end-of-life v23.10.0.
- An existing node keeps whichever Node it already has; the in-app update does not change it. Upgrading Node to 24.22.1 by hand is still recommended.

---

## [v1.4.3] - 2026-10-21 - Outbound HTTPS certificates are verified

pc2-node no longer accepts any certificate on outbound HTTPS. Until now it switched verification off for the whole process at startup, so AI keys, RPC calls, gateway tokens and pins could be intercepted on an untrusted network.
Expand Down
8 changes: 4 additions & 4 deletions deploy/supernode-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ apt-get install -y -qq \
openjdk-17-jre-headless \
> /dev/null 2>&1

# Install Node.js 20.x if not present
if ! command -v node &>/dev/null || [[ $(node -v | cut -d. -f1 | tr -d v) -lt 18 ]]; then
log "Installing Node.js 20.x..."
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - > /dev/null 2>&1
# Install Node.js 24.x if not present
if ! command -v node &>/dev/null || [[ $(node -v | cut -d. -f1 | tr -d v) -lt 24 ]]; then
log "Installing Node.js 24.x..."
curl -fsSL https://deb.nodesource.com/setup_24.x | bash - > /dev/null 2>&1
apt-get install -y -qq nodejs > /dev/null 2>&1
fi
log_ok "Node.js $(node -v)"
Expand Down
4 changes: 2 additions & 2 deletions deploy/web-gateway/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# PC2 Web Gateway
# Multi-stage build for minimal production image

FROM node:20-alpine AS builder
FROM node:24.22.1-alpine AS builder

WORKDIR /app

Expand All @@ -12,7 +12,7 @@ COPY package*.json ./
RUN npm ci --only=production

# Production image
FROM node:20-alpine
FROM node:24.22.1-alpine

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion docker/pc2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This Dockerfile creates a self-contained PC2 node that users can
# deploy on their personal hardware or VPS.

FROM node:20-alpine
FROM node:24.22.1-alpine

# Labels
LABEL org.opencontainers.image.title="ElastOS PC2"
Expand Down
4 changes: 2 additions & 2 deletions enm-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# - /data/enm — ENM's own state (SQLite, ela-build cache, logs)
#
# What's in the image:
# - Node 20 (matches PC2's runtime)
# - Node 24 (matches PC2's runtime)
# - Toolchain to build ela on first run (git, make, gcc, build-essential,
# python3, pkg-config, wget, curl, ca-certificates)
# - Diagnostics tools (iproute2, procps, lsof) for HostConflictScanner
Expand All @@ -19,7 +19,7 @@
# release into /data/enm/cache/go-* on first ela build (no system Go).
# - The `ela` binary. Built on demand by the operator via the wizard.

FROM node:20-bookworm-slim
FROM node:24.22.1-bookworm-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
git make tar gzip wget curl ca-certificates \
Expand Down
2 changes: 1 addition & 1 deletion enm-server/src/routes/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ function build(extensionHandle) {
httpError = { status: 412, body: errorBody(
'install-class-c: no Node.js runtime detected. POST '
+ '/api/enm/setup/install-node-runtime first (M4.3) or '
+ 'install Node.js v23.10.0 on the host.',
+ 'install Node.js v24.22.1 on the host.',
) };
throw new SetupAbort();
}
Expand Down
4 changes: 2 additions & 2 deletions enm-server/src/services/EnmConfigSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ const classBSchema = Joi.object({
// declares:
// - parentChainId — which EVM sidechain feeds this oracle
// - scriptPath — directory holding crosschain_<X>.js
// - nodejsVersion — pinned to v23.10.0 per upstream (M4.3 ships)
// - nodejsVersion — pinned to v24.22.1 (v23 is end of life)
// - ports.httpRpc — the oracle's status endpoint port
// - parent.{chainRpcUrl, mainchainRpcUrl} — optional overrides; the
// adapter falls through to per-chain RPC URLs derived from cfg
Expand All @@ -415,7 +415,7 @@ const classCSchema = Joi.object({
activeNet: Joi.string().valid('mainnet', 'testnet').default('mainnet'),
parentChainId: Joi.string().valid('esc', 'eid', 'pg').required(),
scriptPath: Joi.string().allow('').default(''),
nodejsVersion: Joi.string().allow('').default('v23.10.0'),
nodejsVersion: Joi.string().allow('').default('v24.22.1'),
ports: classCPortsSchema.required(),
parent: classCParentSchema,
healing: perChainHealingSchema,
Expand Down
4 changes: 2 additions & 2 deletions enm-server/src/services/NodeJsRuntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0
*
* NodeJsRuntime — Wave M4.3 (beta.0.3.3) — locate or install the
* Node.js v23.10.0 interpreter the Class C Oracles need.
* Node.js interpreter the Class C Oracles need.
*
* Plan §12 Q1 recommended bundling (+50MB) but the bundle path is a
* release-engineering concern — for the runtime side we ship two
Expand Down Expand Up @@ -53,7 +53,7 @@ const DOWNLOAD_RETRY_BASE_MS = 2000;
// PINNED_VERSION is what installLocal() downloads as a LAST RESORT
// when the host doesn't have any usable Node.js. Matches node.sh:520
// for parity but is no longer the floor: any v18+ runtime works.
const PINNED_VERSION = 'v23.10.0';
const PINNED_VERSION = 'v24.22.1';

// beta.0.4.1 (operator directive) — lowered MIN_MAJOR from 23 → 18.
// The oracle scripts use web3 + express + standard fs/net APIs that
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elastos-desktop",
"version": "1.4.3",
"version": "1.4.4",
"author": "Elacity LLC",
"license": "AGPL-3.0-only",
"description": "PC2 - your sovereign Web3 cloud desktop that runs on your own hardware.",
Expand Down
4 changes: 2 additions & 2 deletions pc2-node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ RUN chmod +x /binaries/*
# ---------------------------------------------------------------------------
# Stage 2: Build the Node.js application
# ---------------------------------------------------------------------------
FROM node:20-alpine AS builder
FROM node:24.22.1-alpine AS builder

# Install build dependencies
RUN apk add --no-cache python3 make g++ git
Expand Down Expand Up @@ -112,7 +112,7 @@ RUN cd pc2-node && npm run build:backend || true
# ---------------------------------------------------------------------------
# Stage 3: Production image
# ---------------------------------------------------------------------------
FROM node:20-alpine
FROM node:24.22.1-alpine

# Install runtime dependencies
# - bubblewrap: namespace isolation (multi-user security)
Expand Down
Loading
Loading