CVE-2022-39266
isolated-vm has vulnerable CachedDataOptions in API
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.
Description
isolated-vm is a library for nodejs which gives the user access to v8's Isolate interface. In versions 4.3.6 and prior, if the untrusted v8 cached data is passed to the API through CachedDataOptions, 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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | isolated-vm | 4.3.7 |
References
- https://github.com/laverdet/isolated-vm
- https://github.com/laverdet/isolated-vm/commit/218e87a6d4e8cb818bea76d1ab30cd0be51920e8
- https://github.com/laverdet/isolated-vm/commits/v4.3.7
- https://github.com/laverdet/isolated-vm/issues/379
- https://github.com/laverdet/isolated-vm/security/advisories/GHSA-2jjq-x548-rhpv
- https://nvd.nist.gov/vuln/detail/CVE-2022-39266