{"cve":"CVE-2022-21122","nvd":{"published":"2022-06-08T09:15:08.470","modified":"2026-06-17T04:25:33.693","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd","https://github.com/metarhia/metacalc/pull/16","https://snyk.io/vuln/SNYK-JS-METACALC-2826197","https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd","https://github.com/metarhia/metacalc/pull/16"],"products":["metarhia:metacalc"],"source":"nvd","synced_at":"2026-10-19T21:32:39.174919249+00:00"},"epss":{"cve":"CVE-2022-21122","score":0.02683,"percentile":0.85831,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5gc4-cx9x-9c43","url":"https://osv.dev/vulnerability/GHSA-5gc4-cx9x-9c43","summary":"Code Injection in metacalc","modified":"2026-09-10T03:49:49.229146221Z","packages":[{"ecosystem":"npm","name":"metacalc","purl":"pkg:npm/metacalc","ranges":["<0.0.2"],"fixed":["0.0.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}