PT-2026-94308 · Npm · Vm2
CVSS v4.0
6.9
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
vm2 versions 3.11.0 through 3.11.6
Description
Absolute host filesystem paths are leaked to sandboxed code via error stack formatting. An attacker can force the host-realm source transformer to throw a
SyntaxError by calling eval with malformed source and subsequently reading the .stack property of the error. The bridge forwards this read to the host-realm formatter, bypassing host-path redaction. This results in the disclosure of absolute paths from the software, Node.js internals, and the embedding application's source tree, as well as host function names. This issue affects default new VM() and new NodeVM() configurations and persists even if string eval is disabled. The impact is limited to information disclosure.Recommendations
Update to version 3.11.7.
Exploit
Fix
Generation of Error Message Containing Sensitive Information
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Vm2