Prototype pollution in safe-eval
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | safe-eval | all versions | — | No fix listed | CNA |
| — | safe-eval (npm) | up to 0.4.1 | — | No fix listed | GHSA-33vh-7x8q-mg35 |
- safe-eval Vendor— Affected all versions Fixed in — No fix listed CNA
- safe-eval (npm) Vendor— Affected up to 0.4.1 Fixed in — No fix listed GHSA-33vh-7x8q-mg35
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:safe-eval_project:safe-eval:*:*:*:*:*:node.js:*:* | up to 0.4.1 | Vulnerable | Safe-eval Project |
- cpe:2.3:a:safe-eval_project:safe-eval:*:*:*:*:*:node.js:*:* Versions up to 0.4.1 Vulnerable ·Safe-eval Project
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2022-25904
- 2026-10-03 Alias added: GHSA-33vh-7x8q-mg35
References
More Safe-eval Project Safe-eval vulnerabilities
- TI-2023-11346 Prototype pollution in safe-eval CVSS 3.1CRITICAL 10.0
- TI-2023-11347 Prototype pollution in safe-eval CVSS 3.1CRITICAL 10.0
- TI-2017-11808 The safe-eval module describes itself as a safer version of eval. CVSS 3.0CRITICAL 10.0
- TI-2020-06230 Sandbox Escape CVSS 3.1CRITICAL 9.8
Sources
- CVE-2022-25904 · CVE Program
- CVE-2022-25904 · NVD
- FIRST EPSS
- GHSA-33vh-7x8q-mg35 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences