ADVISORIES

GitHub Advisory Database

GHSA-33vh-7x8q-mg35

safe-eval vulnerable to Prototype Pollution

Critical No fix available CVE-2022-25904

Details

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

EcosystemPackageAffected versions
npmsafe-eval
All versions up to and including 0.4.1

References