TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
872 stars 229 forks source link

vm2 is now deprecated #218

Closed harryaswan closed 11 months ago

harryaswan commented 11 months ago

The author's message on NPM:

The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.

There is a full explanation in the readme of the project.

This is throwing a warning on every install of downstream packages link Puppeteer.

TooTallNate commented 11 months ago
:ack:

The suggested alternative isolated-vm is probably a non-starter for this project, since it requires a C++ module, which I would like to avoid. I'm considering using QuickJS compiled to WASM instead.

wcbastian commented 11 months ago

Would be nice if pac-proxy support could be an optional dependency, it's frustrating to have security alerts go off for code that we are not using.

sfc-gh-dszmolka commented 11 months ago

Critical severity CVE-2023-37466 vm2 Sandbox Escape vulnerability advisory for vm2

robbkidd commented 11 months ago

❓Is my understanding of the exposure to the vm2 vulnerability to users of proxy-agent as of v6.2.2 correct? ❓

TooTallNate commented 11 months ago

@robbkidd Correct

naveinaustin commented 11 months ago

Do we have an ETA for this?

TooTallNate commented 11 months ago

Just giving an update, PR https://github.com/TooTallNate/proxy-agents/pull/224 seems promising so far. Tests are passing and I'm playing around with a fork of quickjs-emscripten that is stripped down of unnecessary features so that the install size of these packages doesn't bloat unnecessarily.