Live threats

All CVEs / Metarhia

CVE-2022-21122Metarhia Metacalc

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.4%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Jun 8, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Metacalc.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm metacalc < 0.0.2 0.0.2 npm install metacalc@0.0.2

Per OSV / GitHub Advisories (GHSA-5gc4-cx9x-9c43). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
metarhiametacalc< 0.0.2

Official sources

References

Links published by the sources. Open them with care.