{"id":"CVE-2023-26122","aliases":["CVE-2023-26122","GHSA-79xf-67r4-q2jj"],"related":[],"kind":"vulnerability","state":"published","title":"safe-eval vulnerable to Sandbox Bypass due to improper input sanitization","summary":"All versions of the package safe-eval are vulnerable to Sandbox Bypass due to improper input sanitization. The vulnerability is derived from prototype pollution exploitation.\nExploiting this vulnerability might result in remote code execution (\"RCE\").\n\n**Vulnerable functions:**\n\n__defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(),  valueOf().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"All versions of the package safe-eval are vulnerable to Sandbox Bypass due to improper input sanitization. The vulnerability is derived from prototype pollution exploitation.\nExploiting this vulnerability might result in remote code execution (\"RCE\").\n\n**Vulnerable functions:**\n\n__defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(),  valueOf().","source":"cvelist"},{"lang":"en","text":"All versions of the package safe-eval are vulnerable to Sandbox Bypass due to improper input sanitization. The vulnerability is derived from prototype pollution exploitation. Exploiting this vulnerability might result in remote code execution (RCE).\n\n**Vulnerable functions:**\n\n__defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(),  valueOf().","format":"markdown","source":"ghsa"}],"published":"2023-04-11T05:00:02.658Z","modified":"2026-06-17T05:42:43.610Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"}],"cwes":["CWE-265","CWE-1321"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"safe-eval","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.4.2"}],"ecosystem":"npm","package":"safe-eval","purl":"pkg:npm/safe-eval","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.4.1"}],"vendor":"safe-eval_project","product":"safe-eval","cpe":"cpe:2.3:a:safe-eval_project:safe-eval:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3373064","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/27","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/seongil-wi/2db6cb884e10137a93132b7f74879cce","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/31","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/32","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/33","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/34","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/35","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26122","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hacksparrow/safe-eval","tags":["package"],"sources":["ghsa"]}],"credits":["seongil-wi"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-02-07T16:56:24.542Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-26122","url":"https://www.cve.org/CVERecord?id=CVE-2023-26122","licence":"CVE Terms of Use","modified":"2025-02-07T16:56:45.658Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-79xf-67r4-q2jj","url":"https://github.com/advisories/GHSA-79xf-67r4-q2jj","licence":"CC-BY-4.0","modified":"2023-11-08T04:11:58.883Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-26122","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26122","licence":"Public domain","modified":"2026-06-17T05:42:43.610Z"}],"updatedAt":"2026-11-25T22:58:23.374Z","epss":{"score":0.02101,"percentile":0.82249,"date":"2026-12-01T12:00:22.000Z"}}