CVE-2022-25904
CRITICAL 9.8CVSS 3.1safe-eval vulnerable to Prototype Pollution
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.
- Published
- 20 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321
- Also known as
- GHSA-33vh-7x8q-mg35
- Sources
- NVDJSONOSV GHSA-33vh-7x8q-mg35JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | safe-eval_project | safe-evalcpe:2.3:a:safe-eval_project:safe-eval:*:*:*:*:*:node.js:*:* |
<= 0.4.1 | |
| OSV | npm | safe-eval | <= 0.4.1 |
References
- https://github.com/hacksparrow/safe-eval/issues/26 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25904 · ADVISORY
- https://github.com/hacksparrow/safe-eval · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 20 Dec 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Dec 2022)