CVE-2022-21122
JSON

9.0critical

Arbitrary Code Execution

Severity
9.0critical CVSS:3.1 by snyk
Exploit likelihood
2.68% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-5gc4-cx9x-9c43SNYK-JS-METACALC-2826197

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.

Affected

Product or packageVersionsReported by
metacalcfrom unspecified before 0.0.2CVE List
metacalc (npm)before 0.0.2GitHub Advisory Database
metarhia metacalcbefore 0.0.2NVD

All scores

snyk9.0critical CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P
GitHub9.0critical CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

The package metacalc before 0.0.2 is 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.

NVD (es)

El paquete metacalc versiones anteriores a 0.0.2, es vulnerable a una ejecución arbitraria de código cuando expone la clase Math de JavaScript al contexto v8. Como la clase Math está expuesta al contexto del usuario, puede ser usada para conseguir acceso al constructor de funciones de JavaScript

References

Sources

SourceRecordLicence
CVE ListCVE-2022-21122 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-5gc4-cx9x-9c43 changed 2026-09-10CC-BY-4.0
NVDCVE-2022-21122 changed 2026-06-17Public domain