Skip to content
Heist/ feed
Back to feed
Medium

vm2 3.11.0 before 3.11.7 Information Disclosure via Error Stack

Type: advisorySources: OSV

vm2 versions 3.11.0 through 3.11.6 leak absolute host filesystem paths to sandboxed code through error stack formatting. Attacker-supplied code can force the host-realm source transformer to throw a SyntaxError (for example by calling eval with malformed source) and then read the error's .stack property; the bridge forwards the .stack read to the host-realm formatter, bypassing the sandbox-side host-path redaction introduced for GHSA-v27g-jcqj-v8rw. The returned stack string discloses absolute paths from vm2, Node.js internals, and the embedding application's own source tree, along with host function names. Default new VM() and new NodeVM() configurations are affected without any special options, and the issue persists when string eval is disabled because the host-side transformer throws before eval is handled. The impact is information disclosure only; no code execution results. Fixed in vm2 3.11.7.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-92936
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 13:06 UTC · Revision 1

Source evidence

vm2 3.11.0 before 3.11.7 Information Disclosure via Error Stack

core-osv · Original source

Published 17 Sept 2026, 13:46 UTC

vm2 versions 3.11.0 through 3.11.6 leak absolute host filesystem paths to sandboxed code through error stack formatting. Attacker-supplied code can force the host-realm source transformer to throw a SyntaxError (for example by calling eval with malformed source) and then read the error's .stack property; the bridge forwards the .stack read to the host-realm formatter, bypassing the sandbox-side host-path redaction introduced for GHSA-v27g-jcqj-v8rw. The returned stack string discloses absolute paths from vm2, Node.js internals, and the embedding application's own source tree, along with host function names. Default new VM() and new NodeVM() configurations are affected without any special options, and the issue persists when string eval is disabled because the host-side transformer throws before eval is handled. The impact is information disclosure only; no code execution results. Fixed in vm2 3.11.7.

osv:CVE-2026-92936
Complete source record
{
  "id": "04cc63eb15bd9c380766b963a3081e6ae7244475ff62a48c5d3f5d46e331c8cc",
  "url": "https://osv.dev/vulnerability/CVE-2026-92936",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "vm2 3.11.0 before 3.11.7 Information Disclosure via Error Stack",
    "summary": "vm2 versions 3.11.0 through 3.11.6 leak absolute host filesystem paths to sandboxed code through error stack formatting. Attacker-supplied code can force the host-realm source transformer to throw a SyntaxError (for example by calling eval with malformed source) and then read the error's .stack property; the bridge forwards the .stack read to the host-realm formatter, bypassing the sandbox-side host-path redaction introduced for GHSA-v27g-jcqj-v8rw. The returned stack string discloses absolute paths from vm2, Node.js internals, and the embedding application's own source tree, along with host function names. Default new VM() and new NodeVM() configurations are affected without any special options, and the issue persists when string eval is disabled because the host-side transformer throws before eval is handled. The impact is information disclosure only; no code execution results. Fixed in vm2 3.11.7.",
    "evidence": "osv:CVE-2026-92936",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-92936",
      "aliases": [
        "CVE-2026-92936",
        "GHSA-x6m4-chr9-cg97"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/patriksimek/vm2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fca270df73b64a88e2f9ce71ac17663b6eaf814e"
                },
                {
                  "fixed": "0c5b63a228c0af88d4a0d364ab0b90df278d710e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "3.11.0"
                      },
                      {
                        "fixed": "3.11.7"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3.11.0"
                      },
                      {
                        "last_affected": "3.11.6"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.11.6",
            "v3.11.5",
            "v3.11.4",
            "v3.11.3",
            "v3.11.2",
            "v3.11.1",
            "v3.11.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-92936.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.749430231Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/92xxx/CVE-2026-92936.json",
        "https://github.com/patriksimek/vm2/security/advisories/GHSA-x6m4-chr9-cg97",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-92936",
        "https://www.vulncheck.com/advisories/vm2-3.11.0-before-3.11.7-information-disclosure-via-error-stack"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-209"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/92xxx/CVE-2026-92936.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-92936",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519385,
  "published_at": "2026-09-17T13:46:01.524+00:00"
}