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.
Remediation
References
https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd
https://github.com/metarhia/metacalc/pull/16
https://snyk.io/vuln/SNYK-JS-METACALC-2826197
Related Vulnerabilities
CVE-2022-31070 Vulnerability in npm package @finastra/nestjs-proxy
CVE-2020-36049 Vulnerability in npm package socket.io-parser
CVE-2023-31579 Vulnerability in maven package top.tangyh.basic:lamp-core
CVE-2022-25851 Vulnerability in maven package org.webjars.npm:jpeg-js
CVE-2012-3451 Vulnerability in maven package org.apache.cxf:cxf-rt-bindings-soap