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-2022-31170 Vulnerability in npm package @openzeppelin/contracts-upgradeable
CVE-2022-40084 Vulnerability in maven package org.opencrx:opencrx-core
CVE-2022-31147 Vulnerability in maven package org.webjars:jquery-validation
CVE-2020-7733 Vulnerability in maven package org.webjars.npm:ua-parser-js
CVE-2020-10992 Vulnerability in maven package com.linkedin.azkaban:azkaban-common