Skip to content

Commit

Permalink
Discontinued
Browse files Browse the repository at this point in the history
  • Loading branch information
XmiliaH committed Jul 9, 2023
1 parent 1663f23 commit 642b200
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
(discontinued) (2023-07-09)
---------------------------
Discontinued do to security issues without proper fixes.

v3.9.19 (2023-05-16)
--------------------
[fix] Fix resolver issue.
Expand Down
16 changes: 15 additions & 1 deletion README.md
@@ -1,6 +1,17 @@
# vm2 [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Package Quality][quality-image]][quality-url] [![Node.js CI](https://github.com/patriksimek/vm2/actions/workflows/node-test.yml/badge.svg)](https://github.com/patriksimek/vm2/actions/workflows/node-test.yml) [![Known Vulnerabilities][snyk-image]][snyk-url]

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Securely!
## Security Issues

Due to recent security issues which cannot be fixed properly I (XmiliaH) will stop maintaining this library.

**The library has known security issues which can be used to break out of the sandbox!**

For an alternative look into [isolated-vm](https://www.npmjs.com/package/isolated-vm).

<details>
<summary>Do not use this library in production code!</summary>

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. **NOT!** Securely!

## Features

Expand Down Expand Up @@ -401,6 +412,7 @@ vm2 ./script.js

## Known Issues

* **There are known security issues to circumvent the sandbox.**
* It is not possible to define a class that extends a proxied class. This includes using a proxied class in `Object.create`.
* Direct eval does not work.
* Logging sandbox arrays will repeat the array part in the properties.
Expand Down Expand Up @@ -430,3 +442,5 @@ vm2 ./script.js
[snyk-url]: https://snyk.io/test/github/patriksimek/vm2
[integromat-image]: https://static.integromat.com/logo/45_text.png
[integromat-url]: https://www.integromat.com

</details>

0 comments on commit 642b200

Please sign in to comment.