8.8high
safe-eval vulnerable to Sandbox Bypass due to improper input sanitization
- Severity
- 8.8high CVSS:3.1 by snyk
- Exploit likelihood
- 2.10% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-79xf-67r4-q2jj
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"). **Vulnerable functions:** __defineGetter__, stack(), toLocaleString(), propertyIsEnumerable.call(), valueOf().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| safe-eval | before * | CVE List |
| safe-eval (npm) | up to 0.4.2 | GitHub Advisory Database |
| safe-eval_project safe-eval | up to 0.4.1 | NVD |
All scores
| snyk | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P |
| GitHub | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Classification
What each source says
CVE List
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().
GitHub Advisory Database
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().
References
| https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3373064 | exploit, issue-tracking, third-party-advisory, web | |
| https://github.com/hacksparrow/safe-eval/issues/27 | exploit, issue-tracking, third-party-advisory, web | |
| https://gist.github.com/seongil-wi/2db6cb884e10137a93132b7f74879cce | exploit, 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://nvd.nist.gov/vuln/detail/CVE-2023-26122 | advisory | |
| https://github.com/hacksparrow/safe-eval | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-26122 changed 2025-02-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-79xf-67r4-q2jj changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-26122 changed 2026-06-17 | Public domain |