Prototype Pollution in safe-eval Package: Object.prototype Modification via safeEval Function

Prototype Pollution in safe-eval Package: Object.prototype Modification via safeEval Function

CVE-2022-25904 · CRITICAL Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

Learn more about our Web Application Penetration Testing UK.