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
Link | Resource |
---|---|
https://snyk.io/vuln/SNYK-JS-METACALC-2826197 | Exploit Third Party Advisory |
https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bd | Patch Third Party Advisory |
https://github.com/metarhia/metacalc/pull/16 | Patch Third Party Advisory |
Configurations
Information
Published : 2022-06-08 02:15
Updated : 2022-06-16 17:59
NVD link : CVE-2022-21122
Mitre link : CVE-2022-21122
JSON object : View
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
Products Affected
metarhia
- metacalc