Critical, CVSS 9.0npmAmendedPublished
Code Injection in metacalc
CVE-2022-21122 · GHSA-5gc4-cx9x-9c43
- Affected
- npm metacalc < 0.0.2
- Fixed in
- 0.0.2· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 0.0.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.