CVE-2022-25904
CRITICAL9.8EPSS 0.29%safe-eval vulnerable to Prototype Pollution
Published: 12/20/2022Modified: 4/16/2025
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.
Affected packages (1)
- npm/safe-evalfrom 0, <= 0.4.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |