High severity7.5NVD Advisory· Published Dec 20, 2022· Updated Jun 17, 2026
CVE-2022-25904
CVE-2022-25904
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
safe-evalnpm | <= 0.4.1 | — |
Affected products
3- cpe:2.3:a:safe-eval_project:safe-eval:*:*:*:*:*:node.js:*:*Range: <=0.4.1
- safe-eval/safe-evaldescription
Patches
Vulnerability mechanics
References
4- github.com/hacksparrow/safe-eval/issues/26nvdExploitIssue TrackingThird Party AdvisoryWEB
- security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701nvdExploitIssue TrackingThird Party AdvisoryWEB
- github.com/advisories/GHSA-33vh-7x8q-mg35ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-25904ghsaADVISORY
News mentions
0No linked articles in our index yet.