CVE-2022-21122
Code Injection in metacalc
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | metacalc | 0.0.2 |