@hoppscotch/cli affected by Sandbox Escape in @hoppscotch/js-sandbox leads to RCE
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
@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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| hoppscotch | hoppscotch | 0.5.0 to before 0.8.0 | 0.8.0 | Patch available | CNA |
| — | @hoppscotch/cli (npm) | 0.5.0 to before 0.8.0 | 0.8.0 | Patch available | GHSA-qmmm-73r2-f8xr |
- hoppscotch Vendorhoppscotch Affected 0.5.0 to before 0.8.0 Fixed in 0.8.0 Patch available CNA
- @hoppscotch/cli (npm) Vendor— Affected 0.5.0 to before 0.8.0 Fixed in 0.8.0 Patch available GHSA-qmmm-73r2-f8xr
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:hoppscotch:hoppscotch:*:*:*:*:*:*:*:* | — | — | hoppscotch |
- cpe:2.3:a:hoppscotch:hoppscotch:*:*:*:*:*:*:*:* Versions — — ·hoppscotch
Remediation
- Fix · CNA hoppscotch (hoppscotch) Fixed in 0.8.0
- Fix · GHSA-qmmm-73r2-f8xr @hoppscotch/cli (npm) Fixed in 0.8.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-34347
- 2026-10-03 Alias added: GHSA-qmmm-73r2-f8xr
References
Other 4
More hoppscotch vulnerabilities
- TI-2026-36924 Mass Assignment via Onboarding Endpoint Allows Unauthenticated JWT_SECRET Overwrite CVSS 3.1CRITICAL 10.0
- TI-2023-16943 Database password exposed in logs in hoppscotch CVSS 3.1HIGH 8.8
- TI-2026-42590 Hoppscotch: Insecure Default Configuration Allows Public Exposure of Private Collection Data via Mock Server CVSS 3.1HIGH 7.5
- TI-2026-32417 hoppscotch: Unauthenticated Onboarding Config Disclosure via Empty Recovery Token CVSS 3.1HIGH 7.5
- TI-2026-27155 hoppscotch: Improper loopback redirect_uri validation in device-login flow CVSS 4.0HIGH 8.5
- TI-2026-22551 hoppscotch has IDOR in updateUserEnvironment / deleteUserEnvironment CVSS 3.1HIGH 8.3
Sources
- CVE-2024-34347 · CVE Program
- CVE-2024-34347 · NVD
- FIRST EPSS
- GHSA-qmmm-73r2-f8xr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences