Critical severity9.0NVD Advisory· Published Jun 8, 2022· Updated Jun 17, 2026
CVE-2022-21122
CVE-2022-21122
Description
The package metacalc before 0.0.2 are vulnerable to Arbitrary Code Execution when it exposes JavaScript's Math class to the v8 context. As the Math class is exposed to user-land, it can be used to get access to JavaScript's Function constructor.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
metacalcnpm | < 0.0.2 | 0.0.2 |
Affected products
2- metacalc/metacalcdescription
Patches
Vulnerability mechanics
References
5- github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bdnvdPatchThird Party AdvisoryWEB
- github.com/metarhia/metacalc/pull/16nvdPatchThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-JS-METACALC-2826197nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-5gc4-cx9x-9c43ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-21122ghsaADVISORY
News mentions
0No linked articles in our index yet.