Skip to main content
EPSS 1.0%top 40%

CVE-2026-43997: CWE-94: Improper Control of Generation of Code ('Code Injection') in patriksimek vm2

0
Critical
VulnerabilityCVE-2026-43997cvecve-2026-43997cwe-94gcvecwe-653
Published: 05/13/2026 (05/13/2026, 17:17:54 UTC)
Source: CVE Database V5
Vendor/Project: patriksimek
Product: vm2

Description

vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.0, it is possible to obtain the host Object. There are various ways to use the host Object, to escape the sandbox, one example would be using HostObject.getOwnPropertySymbols to obtain Symbol(nodejs.util.inspect.custom). This vulnerability is fixed in 3.11.0.

CVSS v3.1

Score 10.0critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected software

patriksimek

vm2

Affected versions
<3.11.0
vm2
pkg:npm/vm2
Affected versions
<3.11.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 13:00:11 UTC

Technical Analysis

The vm2 library for Node.js versions before 3.11.0 contains a vulnerability that permits sandboxed code to access the host Object, for example via HostObject.getOwnPropertySymbols and Symbol(nodejs.util.inspect.custom). This access enables sandbox escape and arbitrary code execution on the host process. The vulnerability is classified as CWE-94 (Improper Control of Generation of Code) and CWE-653 (Improper Isolation or Compartmentalization). It has a CVSS v3.1 base score of 10.0 (critical) with network attack vector, no privileges required, no user interaction, and complete impact on confidentiality, integrity, and availability. The issue is fixed in vm2 version 3.11.0. Red Hat advisory confirms the vulnerability and the fix in 3.11.0 but does not provide an official patch for their products yet.

Potential Impact

An unauthenticated remote attacker who can submit code to a vm2 sandbox can exploit this vulnerability to escape the sandbox and execute arbitrary code on the host system. This results in a complete compromise of the host, affecting confidentiality, integrity, and availability.

Mitigation Recommendations

A fix is available in vm2 version 3.11.0. Users should upgrade to version 3.11.0 or later to remediate this vulnerability. The Red Hat advisory confirms the fix in vm2 3.11.0 but does not indicate an official patch release for Red Hat products yet. Patch status is not yet confirmed for Red Hat products — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-04T20:24:31.917Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-43997","vendor":"Red Hat"}]

Threat ID: 6a04ba1fcbff5d8610f48250

Added to database: 05/13/2026, 17:51:27 UTC

Last enriched: 08/06/2026, 13:00:11 UTC

Last updated: 09/14/2026, 22:01:34 UTC

Views: 91

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses