{"id":"CVE-2023-26122","aliases":["EUVD-2023-1223","GHSA-79xf-67r4-q2jj"],"status":"published","title":"safe-eval vulnerable to Sandbox Bypass due to improper input sanitization","description":"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.\rExploiting this vulnerability might result in remote code execution (\"RCE\").\r\r**Vulnerable functions:**\r\r__defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(),  valueOf().","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.02101,"percentile":0.81986,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1321","CWE-265"],"published":"2023-04-11T05:00:02Z","modified":"2026-10-28T02:30:55Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"safe-eval","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.4.2"}]}]},{"source":"osv","ecosystem":"npm","package":"safe-eval","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.4.2"}]}]}],"products":[{"vendor":"safe-eval_project","product":"safe-eval"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3373064","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","web"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/27","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://gist.github.com/seongil-wi/2db6cb884e10137a93132b7f74879cce","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/31","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/32","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/33","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/34","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/hacksparrow/safe-eval/issues/35","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26122","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-79xf-67r4-q2jj"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26122.json","tags":["advisory"]},{"url":"https://github.com/hacksparrow/safe-eval","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-26122","description":"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.\rExploiting this vulnerability might result in remote code execution (\"RCE\").\r\r**Vulnerable functions:**\r\r__defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(),  valueOf().","status":"published","published":"2023-04-11T05:00:02.658Z","modified":"2025-02-07T16:56:45.658Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high","assessor":"cna"}],"cwes":["CWE-265","CWE-1321"],"updated_at":"2026-11-02T14:35:15.779187Z"}],"euvd":[{"id":"EUVD-2023-1223","description":"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.\rExploiting this vulnerability might result in remote code execution (\"RCE\").\r\r**Vulnerable functions:**\r\r__defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(),  valueOf().","status":"published","published":"2023-04-11T05:00:02Z","modified":"2025-02-07T16:56:45Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:04:01.828429Z"}],"ghsa":[{"id":"GHSA-79xf-67r4-q2jj","title":"safe-eval vulnerable to Sandbox Bypass due to improper input sanitization","description":"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().","status":"published","published":"2023-04-11T06:30:29Z","modified":"2023-04-19T17:10:21Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T14:36:51.39133Z"}],"nvd":[{"id":"CVE-2023-26122","description":"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.\rExploiting this vulnerability might result in remote code execution (\"RCE\").\r\r**Vulnerable functions:**\r\r__defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(),  valueOf().","status":"published","published":"2023-04-11T05:15:07.18Z","modified":"2026-06-17T05:42:43.61Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-265","CWE-1321"],"updated_at":"2026-11-02T14:07:53.719171Z"}],"osv":[{"id":"CVE-2023-26122","description":"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.\rExploiting this vulnerability might result in remote code execution (\"RCE\").\r\r**Vulnerable functions:**\r\r__defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(),  valueOf().","status":"published","published":"2023-04-11T05:00:02.658Z","modified":"2026-10-28T02:30:55.78498179Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P","level":"high"}],"cwes":["CWE-265"],"updated_at":"2026-11-02T15:44:31.135751Z"},{"id":"GHSA-79xf-67r4-q2jj","title":"safe-eval vulnerable to Sandbox Bypass due to improper input sanitization","description":"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().","status":"published","published":"2023-04-11T06:30:29Z","modified":"2023-11-08T04:11:58.883105Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T15:46:41.002603Z"}]}}
