isolated-vm is vulnerable to Type Confusion
90
Critical Risk
The ExternalCopy constructor walks a caller-supplied transferList array twice and reuses the first walk's type check when casting during the second walk. Because array elements are re-read through property gets, an index getter can return a real ArrayBuffer to the validating walk and a different value to the unchecked cast, producing a type confusion with a controlled-address read and write. A guest holding a single reference can reach the ExternalCopy constructor and trigger this, escaping the isolate to crash or hijack control flow in the host process. The fix forbids JavaScript execution while processing values and transfer lists so accessors can no longer run during the copy.
You are affected if you are using a version that falls within the vulnerable range and you run untrusted code inside an isolate with any ivm.Reference shared into it, or you pass a caller-influenced array as the transferList option to ExternalCopy.
isolated-vm is vulnerable to Type Confusion in versions 0.0.1 - 6.1.2 and 7.0.0 - 7.0.0.
Upgrade the isolated-vm library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant