CVE-2026-92945

vm2 before 3.11.7 Module Allowlist Bypass via Prefix Matching

Published Sep 17, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
vm2 before 3.11.7 contains a module allowlist bypass vulnerability in isPathAllowedForModule that uses raw string prefix matching instead of boundary-anchored comparison. Attackers can reach non-allowlisted packages sharing a prefix with allowlisted modules by performing relative requires from allowlisted packages when transitive loading is disabled.

Analysis

AI-generated

Technical impact

vm2 before 3.11.7 contains a flaw in the module allowlist check: the function that verifies whether a module path is allowed uses raw string prefix matching instead of a boundary‑anchored comparison. This means an attacker can load a module that is not on the allowlist but shares a common prefix with an allowlisted module by performing a relative require from an allowlisted package. The ability to execute such modules in the context of the allowed module can enable the attacker to run arbitrary code and further compromise the application.

Affected Systems

The vulnerability affects all installations of patriksimek vm2 where the module allowlist is used, specifically any release earlier than version 3.11.7.

Risk and Exploitability

The CVSS score of 2.3 indicates low severity, and no EPSS score is available. The flaw is not listed in the CISA KEV catalog. The attack vector requires the attacker to be able to influence the module resolution process, for example by supplying a relative module name that shares a prefix with an allowlisted module while transitive loading is disabled. This typically needs local or insider access rather than remote code execution. Given the limited reach and the absence of known exploits, the practical risk is moderate, mainly posing a threat to trusted code execution rather than enabling an immediate remote takeover.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the vm2 package to version 3.11.7 or later
  • If an immediate upgrade is not possible, disable transitive loading or configure vm2 to reject relative module imports from allowlisted packages, enforcing full path validation
  • Audit the application for dynamic module loading that uses relative paths or user input, refactor such code to reference only explicitly allowlisted modules and remove any modules that share prefixes with allowlisted modules

Generated by OpenCVE AI on September 17, 2026 at 22:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-7q3f-wx44-378m vm2: External module allowlist uses a raw prefix test, so a prefix-sharing sibling package is treated as allowlisted
History
Type Values Removed Values Added
First Time appeared Patriksimek
Patriksimek vm2
Vendors & Products Patriksimek
Patriksimek vm2
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description vm2 before 3.11.7 contains a module allowlist bypass vulnerability in isPathAllowedForModule that uses raw string prefix matching instead of boundary-anchored comparison. Attackers can reach non-allowlisted packages sharing a prefix with allowlisted modules by performing relative requires from allowlisted packages when transitive loading is disabled.
Title vm2 before 3.11.7 Module Allowlist Bypass via Prefix Matching
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1025

    Comparison Using Wrong Factors

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 17, 2026, 2:25 PM
Reserved
Sep 17, 2026, 12:43 PM
Status
Deferred
Published
Sep 17, 2026, 2:17 PM
Modified
Sep 17, 2026, 3:17 PM
Severity
Moderate
Public date
Sep 17, 2026, 1:46 PM