{"id":"GHSA-5gc4-cx9x-9c43","revision":"9796edc068a542918e0f4f27b30b3bf2","records":[{"revision":"9796edc068a542918e0f4f27b30b3bf2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5gc4-cx9x-9c43","aliases":["CVE-2022-21122","SNYK-JS-METACALC-2826197"],"title":"Code Injection in metacalc","description":"The package metacalc before 0.0.2 is 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.","state":0,"publishedAt":"2022-06-09T00:00:29+00:00","modifiedAt":"2026-09-10T03:49:49.2291462+00:00","affected":[{"ecosystem":"npm","name":"metacalc","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.0.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-21122","https://github.com/metarhia/metacalc/pull/16","https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd","https://github.com/metarhia/metacalc","https://snyk.io/vuln/SNYK-JS-METACALC-2826197"],"sourceUrl":"https://github.com/advisories/GHSA-5gc4-cx9x-9c43","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5gc4-cx9x-9c43","identifiers":["GHSA-5gc4-cx9x-9c43","CVE-2022-21122","SNYK-JS-METACALC-2826197"]},"retained":false,"historicalAffected":[]}],"coverage":[]}