NetSight
critical9.8

CVE-2022-25904

safe-eval vulnerable to Prototype Pollution

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmsafe-eval<= 0.4.1none recorded

Affected products

VendorProductAffected versions
Safe-Eval ProjectSafe-Eval
through 0.4.1

Weakness classification

References