Skip to content

Commit 0c09126

Browse files
krydositaloacasas
authored andcommitted
doc: add note that vm module is not a security mechanism
the text added in this commit should warn users about wrong idea that vm module can be secure to run unsafe scripts in sandboxes PR-URL: #11557 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 6d6a65e commit 0c09126

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/vm.md

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const vm = require('vm');
1414
JavaScript code can be compiled and run immediately or compiled, saved, and run
1515
later.
1616

17+
*Note*: The vm module is not a security mechanism.
18+
**Do not use it to run untrusted code**.
19+
1720
## Class: vm.Script
1821
<!-- YAML
1922
added: v0.3.1

0 commit comments

Comments
 (0)