CVE-2022-21122
published critical CVSS 3.1 · 9.0Arbitrary Code Execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | metacalcunspecified to < 0.0.2 | Affected | Not stated | snyk |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.0 / 10
- Severity
- critical
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | metacalc | unspecified to < 0.0.2 (affected · custom) | snyk · cna |
Weaknesses
1- Arbitrary Code Execution
References
3Provider assertions
2snyk · cna
Arbitrary Code Execution
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 135187b162d8cb4fcff9ed77e7ee7e08a7706d63e227b0d5205917ac1b6be5b0
- Ingested
- 23 Sep 2026, 07:58:10 UTC
- Source record
- Official CVE record