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.
{
"cna_assigner": "snyk",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21122.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:metarhia:metacalc:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.0.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "625c23d63eabfa16fc815f5832b147b08d2144bd"
}
],
"source": "REFERENCES_COMMIT"
}
]
}