CVE-2022-21122Metarhia Metacalc
Critical 9.8 No auth needed
Follow: this CVE · Metarhia · Metarhia Metacalc We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Metacalc.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| metarhia | metacalc | < 0.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Exploit Third Party Advisory