GHSA-5gc4-cx9x-9c43

Suggest an improvement
Source
https://github.com/advisories/GHSA-5gc4-cx9x-9c43
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-5gc4-cx9x-9c43/GHSA-5gc4-cx9x-9c43.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5gc4-cx9x-9c43
Aliases
Published
2022-06-09T00:00:29Z
Modified
2025-01-14T10:26:52.500868Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-06-08T09:15:00Z",
    "github_reviewed_at": "2022-06-09T23:50:50Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

npm / metacalc

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0.2