# CVE-2022-25904: Prototype Pollution

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-12-20T05:15:11.487Z
- Modified: 2026-06-17T04:34:28.417Z
- Also known as: GHSA-33vh-7x8q-mg35
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- safe-eval: before unspecified
- safe-eval (npm): up to 0.4.1
- safe-eval_project safe-eval: up to 0.4.1

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/hacksparrow/safe-eval/issues/26> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25904> (advisory)
- <https://github.com/hacksparrow/safe-eval> (package)

## Sources

- CVE List: [CVE-2022-25904](https://www.cve.org/CVERecord?id=CVE-2022-25904), CVE Terms of Use, modified 2025-04-16
- GitHub Advisory Database: [GHSA-33vh-7x8q-mg35](https://github.com/advisories/GHSA-33vh-7x8q-mg35), CC-BY-4.0, modified 2025-04-16
- NVD: [CVE-2022-25904](https://nvd.nist.gov/vuln/detail/CVE-2022-25904), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25904 · Whole record: https://cve.day/CVE-2022-25904.json · Rebuilt by cve.day 2026-11-25T22:58:17.704Z
