{"id":"CVE-2022-21122","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.","aliases":["GHSA-5gc4-cx9x-9c43"],"modified":"2026-03-15T22:43:25.816635Z","published":"2022-06-08T09:15:08.470Z","related":["SNYK-JS-METACALC-2826197"],"references":[{"type":"FIX","url":"https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd"},{"type":"FIX","url":"https://github.com/metarhia/metacalc/pull/16"},{"type":"EVIDENCE","url":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/metarhia/metacalc","events":[{"introduced":"0"},{"fixed":"940be866d58a908507aa61611ba158752175d425"},{"fixed":"625c23d63eabfa16fc815f5832b147b08d2144bd"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"0.0.2"}]}}],"versions":["v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21122.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}