How to run user-submitted scripts securely in a node.js sandbox?

前端 未结 2 571
星月不相逢
星月不相逢 2020-11-28 06:20

What are the options for running (possibly malicious) user-submitted scripts in node.js, securely? I.e. in an environment that prevents code from accessing sensitive data a

2条回答
  •  悲&欢浪女
    2020-11-28 06:32

    There is a newer module on github called vm2 that addresses some of these concerns, especially in Node.JS applications. Maybe that will help some others find it, as I have just done.

提交回复
热议问题