Vulnerabilities in pkg:npm/isolated-vm
PACKAGECVE-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.
pkg:npm/isolated-vm
Vulnerability advisories affecting package pkg:npm/isolated-vm. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-2jjq-x548-rhpv | CVE-2022-39266 | CRITICAL | isolated-vm has vulnerable CachedDataOptions in API |
| GHSA-mmhj-4w6j-76h7 | CVE-2021-21413 | HIGH | Misuse of `Reference` and other transferable APIs may lead to access to nodejs isolate |
CVE-2022-39266 at a Glance
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).
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.
npm install isolated-vm@4.3.7
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
CVE-2022-39266 Affected Isolated vm Versions
1 component(s)| 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?
Which Isolated vm versions are affected?
What version fixes CVE-2022-39266?
Is isolated-vm affected?
What is the CVSS score of CVE-2022-39266?
What CWE is associated with CVE-2022-39266?
How can I check npm dependencies for CVE-2022-39266?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}