{
  "id": "CVE-2026-100721",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-100721",
  "published_at": "2026-09-27T01:28:28.596Z",
  "title": "vm2 before 3.12.2 Authorization Bypass via Custom Resolver",
  "vendor": "patriksimek",
  "product": "vm2",
  "cvss": {
    "score": 9.5,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-09-28T09:45:48Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 1.3,
    "repo": "murrez/CVE-2026-100721",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-863",
  "cvss_by_source": {
    "cna": 9.5
  },
  "repos": [
    {
      "repo": "murrez/CVE-2026-100721",
      "url": "https://github.com/murrez/CVE-2026-100721",
      "created_at": "2026-09-28T09:45:48Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-05-01T08:28:53Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "patriksimek",
        "product": "vm2",
        "ranges": [
          "\u003c 3.12.2"
        ],
        "fixed_in": [
          "3.12.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade vm2 to 3.12.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/patriksimek/vm2/security/advisories/GHSA-5h3f-q97h-ccvc"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/patriksimek/vm2/commit/6ac3916da84e060c403e407b6b6318fcc66b0e72"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/patriksimek/vm2/commit/ab4ee7d803e8c80155e9eb3672226bddbca4aa9c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/patriksimek/vm2/commit/91034466bfb7f56b95fd48083ec6ca36d058f164"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/api/package.json",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 PoCbit (+https://pocbit.org)"
      ],
      "protocol": "http",
      "repos": [
        "murrez/CVE-2026-100721"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "murrez/CVE-2026-100721/poc.py:63-64"
      ]
    },
    {
      "method": "GET",
      "path_template": "/node_modules/vm2/package.json",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 PoCbit (+https://pocbit.org)"
      ],
      "protocol": "http",
      "repos": [
        "murrez/CVE-2026-100721"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "murrez/CVE-2026-100721/poc.py:59-64",
        "murrez/CVE-2026-100721/poc.py:288-301"
      ]
    },
    {
      "method": "GET",
      "path_template": "/package-lock.json",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 PoCbit (+https://pocbit.org)"
      ],
      "protocol": "http",
      "repos": [
        "murrez/CVE-2026-100721"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "murrez/CVE-2026-100721/poc.py:61-64"
      ]
    },
    {
      "method": "GET",
      "path_template": "/package.json",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 PoCbit (+https://pocbit.org)"
      ],
      "protocol": "http",
      "repos": [
        "murrez/CVE-2026-100721"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "murrez/CVE-2026-100721/poc.py:60-64",
        "murrez/CVE-2026-100721/poc.py:288-301"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/eval",
      "body_markers": [
        "\"code\":",
        "evil-left-pad",
        "POCBIT-100721-ESCAPED"
      ],
      "content_type": "application/json",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 PoCbit (+https://pocbit.org)"
      ],
      "protocol": "http",
      "repos": [
        "murrez/CVE-2026-100721"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "murrez/CVE-2026-100721/poc.py:67-80",
        "murrez/CVE-2026-100721/poc.py:322-351"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/run",
      "body_markers": [
        "\"code\":",
        "\"script\":",
        "\"source\":",
        "POCBIT-100721-ESCAPED",
        "evil-left-pad",
        "left-pad-backdoor",
        "evil-lodash"
      ],
      "content_type": "application/json",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 PoCbit (+https://pocbit.org)"
      ],
      "protocol": "http",
      "repos": [
        "murrez/CVE-2026-100721"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "murrez/CVE-2026-100721/poc.py:66-80",
        "murrez/CVE-2026-100721/poc.py:322-351",
        "murrez/CVE-2026-100721/poc.py:228-258"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/sandbox/run",
      "body_markers": [
        "\"code\":",
        "evil-left-pad"
      ],
      "content_type": "application/json",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 PoCbit (+https://pocbit.org)"
      ],
      "protocol": "http",
      "repos": [
        "murrez/CVE-2026-100721"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "murrez/CVE-2026-100721/poc.py:68-80",
        "murrez/CVE-2026-100721/poc.py:322-351"
      ]
    },
    {
      "method": "POST",
      "path_template": "/run",
      "body_markers": [
        "code=",
        "evil-left-pad"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 PoCbit (+https://pocbit.org)"
      ],
      "protocol": "http",
      "repos": [
        "murrez/CVE-2026-100721"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "murrez/CVE-2026-100721/poc.py:66-80",
        "murrez/CVE-2026-100721/poc.py:344-351"
      ]
    }
  ],
  "rules": []
}
