honeycombio / libhoney-js

Javascript library for sending data to Honeycomb
Apache License 2.0
49 stars 29 forks source link

sec: critical vulnerability in transitive dep vm2 (via superagent-proxy) #380

Closed rafaeltc closed 1 year ago

rafaeltc commented 1 year ago

Versions

Description

In vm2 for versions up to 3.9.19, Promise handler sanitization can be bypassed, allowing attackers to escape the sandbox and run arbitrary code. The vm2 project alerts to the existence of critical security issues and claims to have been discontinued, therefore recommending replacing vm2 with isolated-vm.

robbkidd commented 1 year ago

We're keeping an eye on upstream for a fix for the moment.

In the meantime, here's some information about Honeycomb's use of vm2:

What's This Mean For A Libhoney User?

(according to our current understanding, confirmed upstream)

robbkidd commented 1 year ago

proxy-agent release 6.3.0 contains a fix in f1f3220d1.

superagent-proxy's dependency on proxy-agent is currently ^5.0.0 (>=5.0.0, < 6). Awaiting an update to the version constraint there—maybe from this PR?—and a release.