CVE-2024-34347

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-34347
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-34347.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-34347
Aliases
Related
Published
2024-05-08T15:15:11Z
Modified
2025-07-29T11:10:16.001216Z
Summary
[none]
Details

@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.

References

Affected packages

Git / github.com/hoppscotch/hoppscotch

Affected ranges

Type
GIT
Repo
https://github.com/hoppscotch/hoppscotch
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

2023.*

2023.12.0
2023.12.1
2023.12.2
2023.12.3
2023.12.4
2023.12.5
2023.12.6
2023.4.0
2023.4.1
2023.4.2
2023.4.3
2023.4.4
2023.4.5
2023.4.6
2023.4.7
2023.4.8
2023.8.0
2023.8.1
2023.8.2
2023.8.3
2023.8.4

2024.*

2024.3.0

v0.*

v0.1.0

v1.*

v1.0.0
v1.10.0
v1.12.0
v1.5.0
v1.8.0
v1.9.0
v1.9.5
v1.9.7
v1.9.9

v2.*

v2.0.0
v2.1.0
v2.2.0
v2.2.1

v3.*

v3.0.0
v3.0.1