Echo: vm2: security update to 3.12.2

critical Tenable Cloud Security Plugin ID 473565

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- vm2 before 3.12.2 contains an authorization bypass in the NodeVM external-module resolver. When an
embedder configures `require.external` with a custom resolver (and `context: 'host'`),
`LegacyResolver.customResolve` in lib/resolver-compat.js records the resolved module directory in
`this.externals` as `new RegExp('^' + escapeRegExp(resolvedPath))`, without requiring a path separator or
end-of-string boundary. Untrusted guest code can therefore require the allowlisted module (e.g. `foo`) and
then require the absolute path of a non-allowlisted sibling whose path merely shares the resolved prefix
(e.g. `.../node_modules/foo2/index.js`); the sibling passes `isPathAllowedForModule` and is loaded through
`hostRequire`, so its top-level code runs in the host process before the exports are wrapped with
`vm.readonly`, resulting in a sandbox escape and arbitrary code execution in the host context.
(CVE-2026-100721)

Solution

Update the vm2 library and its related packages to version 3.12.2 or later.

See Also

https://advisory.echohq.com/cve/CVE-2026-100721

Plugin Details

Severity: Critical

ID: 473565

Version: Revision 1.2

Type: Local

Published: 10/7/2026

Updated: 10/7/2026

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 93.17

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-100721

CVSS v3

Risk Factor: Critical

Base Score: 9

Temporal Score: 8.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: Critical

Base Score: 9.5

Threat Score: 9

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 10/7/2026

Vulnerability Publication Date: 9/27/2026

Reference Information

CVE: CVE-2026-100721