NetSight
critical9.0

CVE-2022-21122

Code Injection in metacalc

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmmetacalc< 0.0.20.0.2

Affected products

VendorProductAffected versions
MetarhiaMetacalc
before 0.0.2

Weakness classification

References