# CVE-2023-26122: safe-eval vulnerable to Sandbox Bypass due to improper input sanitization

- Severity: High 8.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.10%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 8 links below, marked "exploit"
- Published: 2023-04-11T05:00:02.658Z
- Modified: 2026-06-17T05:42:43.610Z
- Also known as: GHSA-79xf-67r4-q2jj
- Weaknesses: CWE-265, CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## 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().

(As written by CVE List.)

## Affected

- safe-eval: before *
- safe-eval (npm): up to 0.4.2
- safe-eval_project safe-eval: up to 0.4.1

## Every score

- snyk: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2023-26122](https://www.cve.org/CVERecord?id=CVE-2023-26122), CVE Terms of Use, modified 2025-02-07
- GitHub Advisory Database: [GHSA-79xf-67r4-q2jj](https://github.com/advisories/GHSA-79xf-67r4-q2jj), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-26122](https://nvd.nist.gov/vuln/detail/CVE-2023-26122), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26122 · Whole record: https://cve.day/CVE-2023-26122.json · Rebuilt by cve.day 2026-11-25T22:58:23.374Z
