Skip to content
Fencer Vulns
high 8.8

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

Weakness
  • CWE-265 Privilege Issues
  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes

References

Sources

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.