Skip to content

Require Node.js 24.22.1 (CVE-2026-111497) - #154

Merged
marcusosterberg merged 2 commits into
mainfrom
security/node2shell
Oct 24, 2026
Merged

marcusosterberg merged 2 commits into
mainfrom
security/node2shell

Conversation

@marcusosterberg

Copy link
Copy Markdown
Contributor

Node.js before 24.22.1 has a flaw in its Brotli decoder that can allow
remote code execution when a compressed response is decoded
(CVE-2026-111497, also called Node2Shell or HTTP2Shell, see
https://nodejs.org/en/blog/vulnerability/october-2026-security-releases).

This plugin does not fetch anything itself. It reads from the HAR file,
so this change only makes sure it is installed, run and tested on a
patched Node.js.

Changes

  • package.json: engines.node >=24.15.0 -> >=24.22.1.
  • .npmrc (new): engine-strict=true, so npm install in this repository
    stops on an older Node.js instead of warning. .npmrc is not published
    to npm, so projects that install the plugin get the engines requirement
    as a warning, unless they enable engine-strict themselves (webperf_core
    does).
  • Workflows: check-latest: true on setup-node, so CI does not run on an
    older Node.js 24.x cached on the runner.
    WORKFLOW_LINE

Testing

Not run locally. CI on this PR runs the plugin on the updated setup.

After merging

webperf_core installs plugins by exact version. The new requirement
reaches webperf_core after a release here and a version bump there
(Dependabot opens that PR weekly).

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.
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.
@marcusosterberg
marcusosterberg merged commit d4ce2e6 into main Oct 24, 2026
1 check passed
@marcusosterberg
marcusosterberg deleted the security/node2shell branch October 24, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant