CVE-2024-34347

High

Description

@hoppscotch/cli is a CLI to run Hoppscotch Test Scripts in CI environments. Prior to 0.8.0, the @hoppscotch/js-sandbox package provides a Javascript sandbox that uses the Node.js vm module. However, the vm module is not safe for sandboxing untrusted Javascript code. This is because code inside the vm context can break out if it can get a hold of any reference to an object created outside of the vm. In the case of @hoppscotch/js-sandbox, multiple references to external objects are passed into the vm context to allow pre-request scripts interactions with environment variables and more. But this also allows the pre-request script to escape the sandbox. This vulnerability is fixed in 0.8.0.

SeverityHigh
CVSS8.3
Exploit probability—
Product@hoppscotch/cli
PublishedMay 8, 2024
First seenMay 8, 2024

How to fix

Update
  • @hoppscotch/cli0.8.0 or later

Affected products

ProductAffected versionsFixed in
@hoppscotch/clinpm0.5.0 ≤ v < 0.8.00.8.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.