cve/2022/CVE-2022-25904.md

19 lines
871 B
Markdown
Raw Permalink Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2022-25904](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25904)
![](https://img.shields.io/static/v1?label=Product&message=safe-eval&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3E%3D%200%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Prototype%20Pollution&color=brighgreen)
### 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.
### POC
#### Reference
- https://github.com/hacksparrow/safe-eval/issues/26
- https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701
#### Github
No PoCs found on GitHub currently.