Description
The safe-eval module describes itself as a safer version of eval. By accessing the object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox.
Remediation
References
https://github.com/hacksparrow/safe-eval/issues/5
https://github.com/patriksimek/vm2/issues/59
https://nodesecurity.io/advisories/337
Related Vulnerabilities
CVE-2022-36092 Vulnerability in maven package org.xwiki.platform:xwiki-platform-oldcore
CVE-2023-26136 Vulnerability in npm package tough-cookie
CVE-2019-10744 Vulnerability in maven package org.webjars.bowergithub.lodash:lodash
CVE-2020-15250 Vulnerability in maven package junit:junit
CVE-2017-16152 Vulnerability in npm package static-html-server