Live threats

All CVEs / Safe-eval Project

CVE-2022-25904Safe-eval Project Safe-eval

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.0%
probability of exploitation in 30 days · percentile 63
Auth required
No
Published
Dec 20, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Safe-eval.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm safe-eval ≤ 0.4.1 no fixed version —

Per OSV / GitHub Advisories (GHSA-33vh-7x8q-mg35). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
safe-eval_projectsafe-eval≤ 0.4.1

Official sources

References

Links published by the sources. Open them with care.