CVE-2021-21413Misuse of `Reference` and other transferable APIs may lead to access to nodejs isolate
- 8.0HighCVSS base score
- 0.72%Exploitation in 30 daysEPSS · top 45% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
isolated-vm is a library for nodejs which gives you access to v8's Isolate interface. Versions of isolated-vm before v4.0.0 have API pitfalls which may make it easy 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. This is addressed in v4.0.0 through a series of related changes.
Timeline
ID reserved
By GitHub_M
- 3 months later
· 3 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.0 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | Critical9.6 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.72% · top 45% of all CVEs (19 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.0.
Affected products
- affected < 4.0.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmisolated-vmGHSA-mmhj-4w6j-76h7 (opens in a new tab)
References
References4
- https://github.com/laverdet/isolated-vm/security/advisories/GHSA-mmhj-4w6j-76h7 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/laverdet/isolated-vm/commit/2646e6c1558bac66285daeab54c7d490ed332b15 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/laverdet/isolated-vm/commit/27151bfecc260e96714443613880e3b2e6596704 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/laverdet/isolated-vm/blob/main/CHANGELOG.md#v400 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0847 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mmhj-4w6j-76h7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-21413)Record last updated .