CVE-2022-21122

Critical

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.

SeverityCritical
CVSS9.0
Exploit probability—
ProductMetarhia Metacalc
PublishedJun 8, 2022
First seenJun 8, 2022

How to fix

Update
  • metarhia metacalc0.0.2 or later
  • metacalc0.0.2 or later

Affected products

ProductAffected versionsFixed in
metarhia metacalcv < 0.0.20.0.2
metacalcnpmv < 0.0.20.0.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.