{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-21122","published":"2022-06-08T09:15:08.470000Z","last_modified":"2026-06-17T04:25:33.693000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:metarhia:metacalc:*:*:*:*:*:*:*:*","part":"a","vendor":"metarhia","product":"metacalc","version_end_excluding":"0.0.2"}],"cpes_truncated":false,"vendors":["metarhia"],"products":["metarhia/metacalc"],"epss":{"score":0.02356,"percentile":0.84481,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5gc4-cx9x-9c43","ecosystem":"npm","name":"metacalc","purl":"pkg:npm/metacalc","ranges":[{"introduced":"0","fixed":"0.0.2"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2022-21122/","html_en":"/en/cve/CVE-2022-21122/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21122","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21122"},"untrusted":{"vendor_name":"Metarhia","product_name":"Metacalc","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/metarhia/metacalc/pull/16","tags":["Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197","tags":["Exploit","Third Party Advisory"]}]}}