Advisory

GHSA-5gc4-cx9x-9c43

Also known as: CVE-2022-21122, SNYK-JS-METACALC-2826197

Summary

Code Injection in metacalc

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-06-09 00:00 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

metacalc

npm · All systems

Affected

  • introduced 0, fixed 0.0.2 (semver)

Fixed versions

0.0.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences