CVE-2022-21122

CRITICAL

metacalc < 0.0.2 - Remote Code Execution via Math Class Exposure

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-METACALC-2826197
Patch, Third Party Advisory x_refsource_misc
https://github.com/metarhia/metacalc/pull/16

Scores

CVSS v3 9.0
EPSS 0.0110
EPSS Percentile 78.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Details

CWE
CWE-94
Status published
Products (2)
metarhia/metacalc < 0.0.2
npm/metacalc 0 - 0.0.2npm
Published Jun 08, 2022
Tracked Since Feb 18, 2026