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().
Remediation
References
https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3373064
https://github.com/hacksparrow/safe-eval/issues/35
https://github.com/hacksparrow/safe-eval/issues/27
https://github.com/hacksparrow/safe-eval/issues/32
https://github.com/hacksparrow/safe-eval/issues/31
https://github.com/hacksparrow/safe-eval/issues/34
https://github.com/hacksparrow/safe-eval/issues/33
https://gist.github.com/seongil-wi/2db6cb884e10137a93132b7f74879cce
Related Vulnerabilities
CVE-2017-16101 Vulnerability in npm package serverwg
CVE-2018-3717 Vulnerability in npm package anywhere
CVE-2021-23358 Vulnerability in maven package org.webjars.bower:underscore
CVE-2022-39246 Vulnerability in maven package org.matrix.android:matrix-android-sdk2
CVE-2021-46365 Vulnerability in maven package info.magnolia:magnolia-core