CVE-2022-21122

Arbitrary Code Execution

Published Jun 3, 2022 CVSS 3.1 · 9 Critical EPSS 2.7% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-5939 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 GHSA Github GHSA GHSA-5gc4-cx9x-9c43 Code Injection in metacalc
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 16, 2024, 7:56 PM
Reserved
Feb 24, 2022, 12:00 AM
Status
Modified
Published
Jun 8, 2022, 9:15 AM
Modified
Jun 17, 2026, 4:25 AM