{"id":"CVE-2022-21122","aliases":["GHSA-5gc4-cx9x-9c43","SNYK-JS-METACALC-2826197"],"url":"https://o3.security/vulnerability/CVE-2022-21122","summary":"Arbitrary Code Execution","details":"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.","published":"2022-06-03T20:05:12.139Z","modified":"2026-07-15T02:03:29.251270571Z","cvss":{"score":9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"metacalc","fixedVersion":"0.0.2"}],"fix":{"url":"https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd","label":"metarhia/metacalc@625c23d"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21122.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21122"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197"},{"type":"FIX","url":"https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd"},{"type":"FIX","url":"https://github.com/metarhia/metacalc/pull/16"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T02:03:29.251270571Z"}}