Patriksimek vm2
vm2 before 3.12.2 Authorization Bypass via Custom Resolver
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.12.2
Fixed in 3.12.2
Mitigation
Upgrade vm2 to 3.12.2 or later.
References
- Vendor advisory github.com/patriksimek/vm2/security/advisories…
- Patch github.com/patriksimek/vm2/commit/6ac3916da84e…
- Patch github.com/patriksimek/vm2/commit/ab4ee7d803e8…
1 more
Timeline
Days relative to CVE publicationFirst public PoC 1.3 days after publication; not in CISA KEV. First PoC: murrez/CVE-2026-100721 (created 28 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| murrez/CVE-2026-100721 | 28 Sep 2026 +1.3 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /api/package.json
- PoC User-Agent
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)- Seen in
- 1 repo: murrez/CVE-2026-100721
- Evidence
- murrez/CVE-2026-100721/poc.py:63-64
GET /node_modules/vm2/package.json
- PoC User-Agent
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)- Seen in
- 1 repo: murrez/CVE-2026-100721
- Evidence
- murrez/CVE-2026-100721/poc.py:59-64 murrez/CVE-2026-100721/poc.py:288-301
GET /package-lock.json
- PoC User-Agent
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)- Seen in
- 1 repo: murrez/CVE-2026-100721
- Evidence
- murrez/CVE-2026-100721/poc.py:61-64
GET /package.json
- PoC User-Agent
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)- Seen in
- 1 repo: murrez/CVE-2026-100721
- Evidence
- murrez/CVE-2026-100721/poc.py:60-64 murrez/CVE-2026-100721/poc.py:288-301
POST /api/eval
- Body markers
"code":evil-left-padPOCBIT-100721-ESCAPEDinapplication/json- PoC User-Agent
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)- Seen in
- 1 repo: murrez/CVE-2026-100721
- Evidence
- murrez/CVE-2026-100721/poc.py:67-80 murrez/CVE-2026-100721/poc.py:322-351
POST /api/run
- Body markers
"code":"script":"source":POCBIT-100721-ESCAPEDevil-left-padleft-pad-backdoorevil-lodashinapplication/json- PoC User-Agent
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)- Seen in
- 1 repo: murrez/CVE-2026-100721
- 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
POST /api/sandbox/run
- Body markers
"code":evil-left-padinapplication/json- PoC User-Agent
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)- Seen in
- 1 repo: murrez/CVE-2026-100721
- Evidence
- murrez/CVE-2026-100721/poc.py:68-80 murrez/CVE-2026-100721/poc.py:322-351
POST /run
- Body markers
code=evil-left-padinapplication/x-www-form-urlencoded- PoC User-Agent
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)- Seen in
- 1 repo: murrez/CVE-2026-100721
- Evidence
- murrez/CVE-2026-100721/poc.py:66-80 murrez/CVE-2026-100721/poc.py:344-351
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/package\.json(?:[?#].*)?$
(?i)^/node_modules/vm2/package\.json(?:[?#].*)?$
(?i)^/package-lock\.json(?:[?#].*)?$
(?i)^/package\.json(?:[?#].*)?$
(?i)^/api/eval(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-100721 patriksimek vm2 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/package.json"; reference:url,poc.griffinguard.io/cve/CVE-2026-100721; classtype:web-application-attack; sid:9789934; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-100721 patriksimek vm2 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/node_modules/vm2/package.json"; reference:url,poc.griffinguard.io/cve/CVE-2026-100721; classtype:web-application-attack; sid:9507852; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-100721 patriksimek vm2 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/package-lock.json"; reference:url,poc.griffinguard.io/cve/CVE-2026-100721; classtype:web-application-attack; sid:9290389; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-100721 patriksimek vm2 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/package.json"; reference:url,poc.griffinguard.io/cve/CVE-2026-100721; classtype:web-application-attack; sid:9364371; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-100721 patriksimek vm2 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/eval"; http.request_body; content:"|22|code|22|:"; http.request_body; content:"evil-left-pad"; http.request_body; content:"POCBIT-100721-ESCAPED"; reference:url,poc.griffinguard.io/cve/CVE-2026-100721; classtype:web-application-attack; sid:9059838; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: patriksimek vm2 exploit attempt (CVE-2026-100721)
id: gg-pocmon-cve-2026-100721-9789934
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-100721. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-100721
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/package.json'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.100721
title: patriksimek vm2 exploit attempt (CVE-2026-100721)
id: gg-pocmon-cve-2026-100721-9507852
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-100721. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-100721
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/node_modules/vm2/package.json'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.100721
title: patriksimek vm2 exploit attempt (CVE-2026-100721)
id: gg-pocmon-cve-2026-100721-9290389
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-100721. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-100721
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/package-lock.json'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.100721
title: patriksimek vm2 exploit attempt (CVE-2026-100721)
id: gg-pocmon-cve-2026-100721-9364371
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-100721. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-100721
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/package.json'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.100721
title: patriksimek vm2 exploit attempt (CVE-2026-100721)
id: gg-pocmon-cve-2026-100721-9059838
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-100721. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-100721
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/eval'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.100721