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-2023-26158 Vulnerability in npm package mockjs
CVE-2022-1466 Vulnerability in maven package org.keycloak:keycloak-core
CVE-2020-28422 Vulnerability in npm package git-archive
CVE-2022-36908 Vulnerability in maven package org.jenkins-ci.plugins:openshift-deployer
CVE-2017-16143 Vulnerability in npm package commentapp.stetsonwood