Privilege Escalation Affecting isolated-vm package, versions <4.0.0


0.0
high

Snyk CVSS

    Attack Complexity High
    Scope Changed
    Confidentiality High
    Integrity High

    Threat Intelligence

    EPSS 0.17% (54th percentile)
Expand this section
NVD
9.6 critical

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 ID SNYK-JS-ISOLATEDVM-1243750
  • published 7 Apr 2021
  • disclosed 6 Apr 2021
  • credit Abdullah Hamdan, Cristian-Alexandru STAICU

How to fix?

Upgrade isolated-vm to version 4.0.0 or higher.

Overview

isolated-vm is an Access to multiple isolates

Affected versions of this package are vulnerable to Privilege Escalation. Misuse of Reference and other transferable APIs may lead to access to nodejs isolate. Affected versions have API pitfalls which make it possible for implementers to expose supposed secure isolates to the permissions of the main nodejs isolate.

Reference objects allow access to the underlying reference's full prototype chain. In an environment where the implementer has exposed a Reference instance to an attacker, they would be able to use it to acquire a Reference to the nodejs context's Function object.

Similar application-specific attacks could be possible by modifying the local prototype of other API objects.

Access to NativeModule objects could allow an attacker to load and run native code from anywhere on the filesystem. If combined with, for example, a file upload API, this would allow for arbitrary code execution.