cve.bz

CVE-2022-21122

9.8 criticalEPSS 2.7%

Critical (9.8) in metarhia metacalc. EPSS 2.7% chance of exploitation in the next 30 days. Fixed in metacalc 0.0.2.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.7% chance of exploitation in the next 30 days; higher than 85% of CVEs (scores of 2026-10-31)
CWE
CWE-94
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5gc4-cx9x-9c43npmmetacalc<0.0.20.0.2

References

Check your stackJSON