# CVE-2023-26121: safe-eval vulnerable to Prototype Pollution via the safeEval function

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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): 1.11%, higher than 66% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2023-04-11T05:00:01.308Z
- Modified: 2026-06-17T05:42:43.477Z
- Also known as: GHSA-hcg3-56jf-x4vh
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## Description

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper sanitization of its parameter content.

(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 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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-3373062> (exploit, third-party-advisory, web)
- <https://gist.github.com/seongil-wi/9d9fc0cc5b7b130419cd45827e59c4f9> (exploit, third-party-advisory, web)
- <https://github.com/hacksparrow/safe-eval/issues/28> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-26121> (advisory)
- <https://github.com/hacksparrow/safe-eval> (package)

## Sources

- CVE List: [CVE-2023-26121](https://www.cve.org/CVERecord?id=CVE-2023-26121), CVE Terms of Use, modified 2025-02-10
- GitHub Advisory Database: [GHSA-hcg3-56jf-x4vh](https://github.com/advisories/GHSA-hcg3-56jf-x4vh), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-26121](https://nvd.nist.gov/vuln/detail/CVE-2023-26121), Public domain, modified 2026-06-17

---

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