Description
All versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.
Remediation
References
https://github.com/hacksparrow/safe-eval/issues/26
https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701
Related Vulnerabilities
CVE-2021-32573 Vulnerability in npm package express-cart
CVE-2019-9827 Vulnerability in maven package io.hawt:hawtio-system
CVE-2023-43123 Vulnerability in maven package org.apache.storm:storm-server
CVE-2021-23416 Vulnerability in npm package curly-bracket-parser
CVE-2021-21619 Vulnerability in maven package org.jenkins-ci.plugins:claim