CVE-2023-26122
JSON

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 packageVersionsReported by
safe-evalbefore *CVE List
safe-eval (npm)up to 0.4.2GitHub Advisory Database
safe-eval_project safe-evalup to 0.4.1NVD

All scores

snyk8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P
GitHub10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-265CWE-1321

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

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-3373064exploit, issue-tracking, third-party-advisory, web
https://github.com/hacksparrow/safe-eval/issues/27exploit, issue-tracking, third-party-advisory, web
https://gist.github.com/seongil-wi/2db6cb884e10137a93132b7f74879cceexploit, third-party-advisory, web
https://github.com/hacksparrow/safe-eval/issues/31exploit, issue-tracking, third-party-advisory, web
https://github.com/hacksparrow/safe-eval/issues/32exploit, issue-tracking, third-party-advisory, web
https://github.com/hacksparrow/safe-eval/issues/33exploit, issue-tracking, third-party-advisory, web
https://github.com/hacksparrow/safe-eval/issues/34exploit, issue-tracking, third-party-advisory, web
https://github.com/hacksparrow/safe-eval/issues/35exploit, issue-tracking, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2023-26122advisory
https://github.com/hacksparrow/safe-evalpackage

Sources

SourceRecordLicence
CVE ListCVE-2023-26122 changed 2025-02-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-79xf-67r4-q2jj changed 2023-11-08CC-BY-4.0
NVDCVE-2023-26122 changed 2026-06-17Public domain