{"id":"EUVD-2022-5939","enisaUuid":"50f0a1c9-3055-37bf-9268-e93d10955c31","description":"The package metacalc before 0.0.2 are vulnerable to Arbitrary Code Execution when it exposes JavaScript\u0027s Math class to the v8 context. As the Math class is exposed to user-land, it can be used to get access to JavaScript\u0027s Function constructor.","datePublished":"Jun 3, 2022, 8:05:12 PM","dateUpdated":"Sep 16, 2024, 7:56:29 PM","baseScore":9.0,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P","references":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197\nhttps://github.com/metarhia/metacalc/pull/16\nhttps://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd\n","aliases":"CVE-2022-21122\nGHSA-5gc4-cx9x-9c43\n","assigner":"snyk","epss":2.68,"enisaIdProduct":[{"id":"c527d8e5-0079-3888-b603-b029b3f540ba","product":{"name":"metacalc","vendor":{"name":"n/a"}},"product_version":"unspecified \u003c0.0.2"}],"enisaIdVendor":[{"id":"1a8592f7-e35f-31da-88a8-3420d0ccd0db","vendor":{"name":"n/a"}}],"enisaIdVulnerability":[{"id":"0e1ea416-b4ff-36b4-83e9-0c440ee21b45","vulnerability":{"id":"CVE-2022-21122","description":"The package metacalc before 0.0.2 are vulnerable to Arbitrary Code Execution when it exposes JavaScript\u0027s Math class to the v8 context. As the Math class is exposed to user-land, it can be used to get access to JavaScript\u0027s Function constructor.","datePublished":"Jun 3, 2022, 8:05:12 PM","dateUpdated":"Sep 16, 2024, 7:56:29 PM","status":"PUBLISHED","baseScore":9.0,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P","references":"https://snyk.io/vuln/SNYK-JS-METACALC-2826197\nhttps://github.com/metarhia/metacalc/pull/16\nhttps://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd\n","enisa_id":"EUVD-2022-5939\n","assigner":"snyk","epss":2.68,"dataProcessed":"Nov 17, 2026, 7:18:44 AM","vulnerabilityProduct":[{"id":"9b6fd1ea-d23b-3943-9239-f09f009760fd","product":{"name":"metacalc","vendor":{"name":"n/a"}},"product_version":"unspecified \u003c0.0.2"}],"vulnerabilityVendor":[{"id":"b1230646-9082-307e-a2c4-25a8da67cdec","vendor":{"name":"n/a"}}]}},{"id":"1a9e2e10-92f2-3418-8197-187fb2ab3ece","vulnerability":{"id":"GHSA-5gc4-cx9x-9c43","description":"Code Injection in metacalc","datePublished":"Jun 9, 2022, 12:00:29 AM","dateUpdated":"Jun 20, 2022, 10:01:28 PM","baseScore":null,"references":"https://nvd.nist.gov/vuln/detail/CVE-2022-21122\nhttps://github.com/metarhia/metacalc/pull/16\nhttps://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd\nhttps://github.com/metarhia/metacalc\nhttps://snyk.io/vuln/SNYK-JS-METACALC-2826197\n","enisa_id":"EUVD-2022-5939\n","aliases":"CVE-2022-21122\nGHSA-5gc4-cx9x-9c43\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:29:09 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}