critical9.0
CVE-2022-21122
Code Injection in metacalc
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | metacalc | < 0.0.2 | 0.0.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Metarhia | Metacalc | before 0.0.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd
- https://github.com/metarhia/metacalc/pull/16
- https://snyk.io/vuln/SNYK-JS-METACALC-2826197
- https://github.com/advisories/GHSA-5gc4-cx9x-9c43
- https://nvd.nist.gov/vuln/detail/CVE-2022-21122