CVE-2022-39266: Isolated vm Isolated-vm Has Vulnerable CachedDataOptions Vulnerability

CRITICAL
Advisory Identifier: GHSA-2jjq-x548-rhpv
CVSS 9.6
CWE-287 CWE-693 CWE-20
Published
Advisory Summary

CVE-2022-39266 is a CRITICAL (CVSS 9.6) isolated-vm has vulnerable cacheddataoptions vulnerability (CWE-287: Improper Authentication) affecting Isolated vm libraries in the npm ecosystem. The issue involves isolated-vm has vulnerable cacheddataoptions in api. Remediation is available by upgrading affected packages to version 4.3.7.

CVE-2022-39266 at a Glance

CVE Identifier CVE-2022-39266
GHSA Identifier GHSA-2jjq-x548-rhpv
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-287: Improper Authentication
Affected Product Isolated vm
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2022-39266

To remediate this vulnerability, upgrade all affected Isolated vm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

isolated-vm fixed: 4.3.7
npm install isolated-vm@4.3.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls isolated-vm

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2022-39266, inspect your project dependencies using npm:

npm ls isolated-vm

Analyze the terminal output to locate any version of Isolated vm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.3.7), your application is affected.

Note: The npm ls isolated-vm command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Isolated vm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact If the untrusted v8 cached data is passed to the API through CachedDataOptions, the attackers can bypass the sandbox and run arbitrary code in the nodejs process. Version 4.3.7 changes the documentation to warn users that they should not accept `cachedData` payloads from a user.

CVE-2022-39266 Affected Isolated vm Versions

1 component(s)
Fixed Versions:
4.3.7
Product / Package Ecosystem Affected Versions Fixed Version
isolated-vm
npm
< 4.3.7
4.3.7

References

Frequently Asked Questions

What is CVE-2022-39266?
CVE-2022-39266 is a security vulnerability in Isolated vm involving isolated-vm has vulnerable CachedDataOptions in API under CWE-287: Improper Authentication.
Which Isolated vm versions are affected?
Affected versions include releases prior to 4.3.7 across affected packages: isolated-vm.
What version fixes CVE-2022-39266?
Upgrading to 4.3.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is isolated-vm affected?
Yes, isolated-vm is affected in releases prior to 4.3.7. Upgrade your dependency to 4.3.7 or later.
What is the CVSS score of CVE-2022-39266?
CVE-2022-39266 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2022-39266?
CVE-2022-39266 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for CVE-2022-39266?
Run the dependency tree command: 'npm ls isolated-vm'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2jjq-x548-rhpv",
  "modified" : "2023-08-24T22:25:36Z",
  "published" : "2022-09-30T22:59:03Z",
  "aliases" : [ "CVE-2022-39266" ],
  "summary" : "isolated-vm has vulnerable CachedDataOptions in API",
  "details" : "### Impact\nIf the untrusted v8 cached data is passed to the API through CachedDataOptions, the attackers can bypass the sandbox and run arbitrary code in the nodejs process. Version 4.3.7 changes the documentation to warn users that they should not accept `cachedData` payloads from a user.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "isolated-vm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.3.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.3.6"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/laverdet/isolated-vm/security/advisories/GHSA-2jjq-x548-rhpv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39266"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laverdet/isolated-vm/issues/379"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laverdet/isolated-vm/commit/218e87a6d4e8cb818bea76d1ab30cd0be51920e8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/laverdet/isolated-vm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/laverdet/isolated-vm/commits/v4.3.7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-287", "CWE-693" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-30T22:59:03Z",
    "nvd_published_at" : "2022-09-29T18:15:00Z"
  }
}