NewsCrawler.org

vm2's own repo lists the sandbox escapes it has not closed

vm2 is a sandbox for running untrusted code inside a Node.js process. The article's author, who has written six case files on vm2's CVEs, argues that the project's own repository lists its known ways out of the sandbox[1]: a nesting escape that was considered and deferred, an entry under a "monitoring" heading, and species shims for Promise and Array but not for typed arrays. The nesting fix shipped on May 1, 2026, and its commit message says that passing constraints from the outer sandbox to the inner one was deferred because it would change documented behavior.

The author says vm2 wraps host objects using a list written by hand from the language specification, so the list lags behind new features. CVE-2026-26332 used two ES2024 features exactly as documented, and CVE-2026-45411 involved AsyncGenerator, which shipped in V8[2] in 2018 but was added to the list eight years later. According to the article, vm2 has three ways to close such gaps: add an entry, remove a feature (CVE-2026-26956 removed WebAssembly in a twenty-line patch), or overwrite a property before each host call and restore it afterward (CVE-2026-24118, 306 lines).

The author also points to CVE-2026-44007, where setting require to false and nesting to true together let sandbox code run shell commands on the host. The patch rejects that exact pair with the error "the deny-all expectation cannot be honored," and the README now includes a sample whose last comment is // RCE. Between February 17 and May 3, vm2 closed eighteen advisories in four releases, thirteen of them in one release.

Read the original nefariousplan.comDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page