Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
CVE-2022-21122 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd | CVE | PatchThird Party Advisory |
| https://github.com/metarhia/metacalc/pull/16 | CVE | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-METACALC-2826197 | CVE | ExploitThird Party Advisory |
| https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd | [email protected] | PatchThird Party Advisory |
| https://github.com/metarhia/metacalc/pull/16 | [email protected] | PatchThird Party Advisory |
| https://snyk.io/vuln/SNYK-JS-METACALC-2826197 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| metarhia metacalc | < 0.0.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jun 17, 2022 | Initial Analysis | [email protected] |