From aade296aeea9f158e881e0c3f467e0494b9b20ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20=C3=96sterberg?= Date: Fri, 23 Oct 2026 18:26:34 +0200 Subject: [PATCH 1/2] Require Node 24.22.1 or later and enable engine-strict engines.node is raised to >=24.22.1, the first 24.x release where Node2Shell (CVE-2026-111497, the Brotli decoder in Node.js) is fixed. .npmrc with engine-strict=true makes npm refuse to install on an older Node instead of only warning. --- .npmrc | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/package.json b/package.json index f2d0007..9f407cf 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ } }, "engines": { - "node": ">=24.15.0" + "node": ">=24.22.1" }, "lint-staged": { "*.js": [ From 28127d433ebc7c86da6ddd48493a1776d89dc70d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20=C3=96sterberg?= Date: Fri, 23 Oct 2026 18:26:34 +0200 Subject: [PATCH 2/2] Add check-latest to setup-node in workflows Without check-latest, setup-node may use an older 24.x already cached on the runner, and it can be older than 24.22.1 where CVE-2026-111497 (Node2Shell) is fixed. With check-latest: true the latest 24.x is downloaded. --- .github/workflows/linux.yml | 1 + .github/workflows/manual-start.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 73cb920..e1fcf0c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -15,6 +15,7 @@ jobs: uses: actions/setup-node@v7 with: node-version: '24.x' + check-latest: true - name: Install latest Chrome run: | wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - diff --git a/.github/workflows/manual-start.yml b/.github/workflows/manual-start.yml index 533337a..78e9340 100644 --- a/.github/workflows/manual-start.yml +++ b/.github/workflows/manual-start.yml @@ -18,6 +18,7 @@ jobs: uses: actions/setup-node@v7 with: node-version: '24.x' + check-latest: true - name: Install latest Chrome run: | wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -