Skip to main content
Antivirus & security

Node.js vulnerabilities

Check Node.js runtimes for CVE-2026-111497 (Node2Shell) and interpret version findings, backports, and coverage gaps.

The Node.js vulnerabilities check examines discovered Node.js runtimes on Windows, Linux, and macOS for CVE-2026-111497 (Node2Shell) based on their version. It runs on the device, every 60 minutes by default. It does not perform an exploit test and is not a general Node.js vulnerability scanner.

Prerequisites

  • The octoja agent is installed and connected on the device.
  • The agent can read the Node.js files and relevant directories to be checked.

Steps

  1. Go to Devices and open the device.
  2. On the Checks tab, click Add Check → Node.js vulnerabilities.
  3. For installations outside the usual directories, add Additional paths.
  4. Click Add Check.
  5. After the first run, open the result. Review the Coverage gaps as well as the discovered installations.

To cover many devices, assign the check through a config package.

Settings

FieldTypeRequiredDefaultDescription
Additional pathsList of pathsNoEmptyAbsolute paths to Node.js files or directories, such as C:\tools\node\node.exe or /opt/app/node. Additional directories are searched only to a limited extent. Relative or missing paths create a coverage gap.

The check looks for Node.js in running processes, PATH, and common installation directories, including the user directories of version managers such as nvm, fnm, Volta, asdf, and mise. On Linux, it also uses the package manager (dpkg-query or rpm); on macOS, Homebrew.

Warning: Discovery covers the host only. Containers and runtimes bundled into applications, such as Electron or Bun, are not covered. Additional paths do not enable a full disk search either. An OK result does not prove that every Node.js copy on the device is safe.

Results

The detail view shows each installation's Path, Version, Package (if mapped), result, and reason. The overall result is the worst severity across installations and coverage gaps.

The check uses these minimum versions from the Node.js security releases of October 21, 2026:

Release lineFixed from
2222.23.4
2424.22.1
2626.12.1
FindingResult
Stable version reaches the minimum version for its release lineOK for this installation
Version 22, 24, or 26 below the minimum version, with no mapped Linux vendor packageCritical
Older, unsupported release line (such as 20 or 23), with no mapped Linux vendor packageCritical – no fix exists; move to 22.x, 24.x, or 26.x
Linux vendor package below the minimum versionWarning – review vendor backports and the distribution's Brotli library; this does not confirm a vulnerability
Version unknown, not assessable, or a prereleaseWarning – manual review required
No installation discoveredOK as long as there are no coverage gaps – not proof that Node.js is absent
Path inaccessible, configured path missing, package/process inventory unavailable, or scan limit reachedAt least Warning; a critical version finding stays critical
A running process still points to a deleted Node.js fileAt least Warning – check whether the affected application needs a restart

The check evaluates NodeSource packages like upstream versions, by their version number.

For coverage gaps, check the listed paths, access permissions, and whether the package or process query is available. For installations that were not found, add targeted additional paths rather than large directory trees.

FAQ

Distributions often build Node.js against the system Brotli library and can backport the fix without raising the displayed Node.js version. The check does not verify these backports automatically. Compare the displayed package and version with your distribution vendor's security advisories for CVE-2026-111497. A warning alone does not confirm a vulnerability.

Restart the applications and services that use Node.js, then let the check run again. A process still running the old, since-replaced file appears as a coverage gap. Also remove old Node.js versions you no longer need, for example in version managers, or update them as well.

A discovered file does not always provide a version that can be evaluated. On Linux and macOS, the check runs Node.js to query its version only if the file and its parent directories are owned by root and not writable by the group or other users. For version-manager installations, it reads the bundled version file instead. Review unknown versions manually; do not loosen file permissions for this.

See also: PHP vulnerabilities · Set up alerts for a check