All reports
Critical

Code Injection in metacalc

Affected versions

Affected versions
< 0.0.2
Fixed version
0.0.2

Exploitation

CVE-2022-21122

Probability of exploitation in the next 30 days: 2.68%

FIRST EPSS · 2026-11-20

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.

Links