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-2020-7684 Vulnerability in npm package rollup-plugin-serve-favicon
CVE-2020-7720 Vulnerability in maven package org.webjars.npm:node-forge
CVE-2019-10779 Vulnerability in maven package stroom:stroom-app
CVE-2020-10719 Vulnerability in maven package io.undertow:undertow-core
CVE-2021-37694 Vulnerability in npm package @asyncapi/java-spring-cloud-stream-template