permission model

A Node.js feature, turned on with --permission, that blocks file system access, child processes, worker threads and native addons unless you allow them with flags such as --allow-fs-read.

In more detail

It limits what a compromised dependency could do inside your process. It is a safety net rather than a full sandbox, so keep running services with least privilege as well.

Related terms

Taught in

References