VulnerabilityModified
CVE-2022-21122
The package metacalc before 0.0.2 are vulnerable to Arbitrary Code Execution when it exposes JavaScript's Math class to the v8 context.
CRITICAL 9.8EPSS 2.51%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.51%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 2.51% probability · 84th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- metarhia/metacalc
- Source
- report@snyk.io
References
- https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bdPatch, Third Party Advisory
- https://github.com/metarhia/metacalc/pull/16Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-METACALC-2826197Exploit, Third Party Advisory
- https://github.com/metarhia/metacalc/commit/625c23d63eabfa16fc815f5832b147b08d2144bdPatch, Third Party Advisory
- https://github.com/metarhia/metacalc/pull/16Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-METACALC-2826197Exploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.