Arbitrary Code Injection Affecting @enclave-vm/ast package, versions <2.11.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.5% (66th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ENCLAVEVMAST-15366962
  • published2 Mar 2026
  • disclosed25 Feb 2026
  • creditArthur, David Antoon

Introduced: 25 Feb 2026

NewCVE-2026-27597  (opens in a new tab)
CWE-1321  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade @enclave-vm/ast to version 2.11.0 or higher.

Overview

@enclave-vm/ast is a production-ready, extensible AST validator for JavaScript with rule-based validation

Affected versions of this package are vulnerable to Arbitrary Code Injection by escaping the enclave sandbox. An attacker can pollute the Object constructor rather than the intended SafeObject constructor, thereby modifying host objects Object.getOwnPropertyDescriptors or nodejs.util.inspect.custom, and execute arbitrary commands on the host system.

References

CVSS Base Scores

version 4.0
version 3.1