CVE-2023-26122 json
safe-eval vulnerable to Sandbox Bypass due to improper input sanitization
published 2023-04-11 3 y ago modified 2026-06-17 4 mo ago also GHSA-79xf-67r4-q2jj , EUVD-2023-1223
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
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().
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
2.10% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3373064 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/hacksparrow/safe-eval/issues/27 referenced PoC, tagged "exploit" by a source, unverified
- gist.github.com https://gist.github.com/seongil-wi/2db6cb884e10137a93132b7f74879cce referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/hacksparrow/safe-eval/issues/31 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/hacksparrow/safe-eval/issues/32 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/hacksparrow/safe-eval/issues/33 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/hacksparrow/safe-eval/issues/34 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/hacksparrow/safe-eval/issues/35 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | safe-eval | <=0.4.2 |
no fix listed |
Affected products
- n/a safe-eval
Classification
References
-
security.snyk.io
/vuln/SNYK-JS-SAFEEVAL-3373064
web, exploit, issue-tracking, third-party-advisory
-
github.com
/hacksparrow/safe-eval/issues/27
web, exploit, issue-tracking, third-party-advisory
-
gist.github.com
/seongil-wi/2db6cb884e10137a93132b7f74879cce
web, exploit, third-party-advisory
-
github.com
/hacksparrow/safe-eval/issues/31
web, exploit, issue-tracking, third-party-advisory
-
github.com
/hacksparrow/safe-eval/issues/32
web, exploit, issue-tracking, third-party-advisory
-
github.com
/hacksparrow/safe-eval/issues/33
web, exploit, issue-tracking, third-party-advisory
-
github.com
/hacksparrow/safe-eval/issues/34
web, exploit, issue-tracking, third-party-advisory
-
github.com
/hacksparrow/safe-eval/issues/35
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-26122
advisory
-
github.com
/hacksparrow/safe-eval
package
Sources
- CVE List CVE-2023-26122
- GitHub Advisory GHSA-79xf-67r4-q2jj
- NVD CVE-2023-26122
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.