CVE-2023-26122
CRITICAL 10.0CVSS 3.1safe-eval vulnerable to Sandbox Bypass due to improper input sanitization
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").
Vulnerable functions:
defineGetter, stack(), toLocaleString(), propertyIsEnumerable.call(), valueOf().
- Published
- 11 Apr 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321CWE-265
- Also known as
- GHSA-79xf-67r4-q2jj
- Sources
- NVDJSONOSV GHSA-79xf-67r4-q2jjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | safe-eval_project | safe-evalcpe:2.3:a:safe-eval_project:safe-eval:*:*:*:*:*:node.js:*:* |
<= 0.4.1 | |
| OSV | npm | safe-eval | <= 0.4.2 |
References
- https://gist.github.com/seongil-wi/2db6cb884e10137a93132b7f74879cce · Exploit, Third Party Advisory, WEB
- https://github.com/hacksparrow/safe-eval/issues/27 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/hacksparrow/safe-eval/issues/31 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/hacksparrow/safe-eval/issues/32 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/hacksparrow/safe-eval/issues/33 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/hacksparrow/safe-eval/issues/34 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/hacksparrow/safe-eval/issues/35 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3373064 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-26122 · ADVISORY
- https://github.com/hacksparrow/safe-eval · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 11 Apr 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Apr 2023)