Privilege Escalation Affecting isolated-vm package, versions <4.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (56th 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 IDSNYK-JS-ISOLATEDVM-1243750
  • published7 Apr 2021
  • disclosed6 Apr 2021
  • creditAbdullah Hamdan, Cristian-Alexandru STAICU

Introduced: 6 Apr 2021

CVE-2021-21413  (opens in a new tab)
CWE-264  (opens in a new tab)

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.

CVSS Scores

version 3.1