Skip to main content

Hoppscotch EUVDEUVD-2026-42653

| CVE-2026-59721 HIGH
Command Injection (CWE-77)
2026-07-09 security-advisories@github.com
7.2
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain admin GraphQL access
  2. Delivery
    Submit updateInfraConfigs with malicious MAILER_SMTP_URL
  3. Exploit
    Bypass validateSMTPUrl via path/query/fragment
  4. Execution
    Inject nodemailer sendmail options
  5. Persist
    Trigger restart and mail send
  6. Impact
    Execute arbitrary command as root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated admin account able to call the updateInfraConfigs GraphQL mutation (CVSS PR:H), so this is not exploitable by anonymous users. The attacker must set the MAILER_SMTP_URL infra configuration to a malicious URL whose path, query, or fragment encodes nodemailer sendmail transport options. Exploitation is further gated on two operational triggers: the backend service must restart to load the new configuration, and a mail-sending event must occur to invoke the sendmail transport that runs the injected command. Limiting factors are therefore the admin-privilege prerequisite, the dependency on the sendmail/nodemailer mail path being active, and the restart-plus-mail timing; deployments that never restart with the poisoned value or never send mail are not affected.

Impact

The CVSS 3.1 base score is 7.2 (High) with vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - network-reachable, low-complexity, no user interaction, but gated behind high privileges (PR:H), namely an existing admin account. That privilege requirement is the dominant limiting factor: this is a privilege-escalation/persistence primitive for an admin who already controls infra configuration, not an unauthenticated internet-facing RCE. There is no KEV listing and no known POC, so no public exploit is identified at time of analysis, and no EPSS score was provided, leaving the statistical exploitation-probability signal absent. The realistic threat is an insider, a compromised admin credential, or a chained attack that first obtains admin GraphQL access. Impact once triggered is severe (root command execution, C:H/I:H/A:H), so despite the moderate score it warrants priority on any multi-tenant or shared Hoppscotch deployment where admin access is not strictly trusted. Note exploitation is not instantaneous: it requires a service restart and a mail-send event to fire, slightly reducing immediacy.

Exploit ScenarioDerived

An attacker who has obtained Hoppscotch admin access (via credential theft, a rogue administrator, or a chained flaw) submits an updateInfraConfigs GraphQL mutation setting MAILER_SMTP_URL to a crafted value whose fragment or query embeds sendmail transport options pointing at an arbitrary command. After the backend restarts and the next email is dispatched, nodemailer executes the injected command as root inside the container. No public POC is currently identified, but the attack is low-complexity for anyone holding the required admin token.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 09, 2026

Command injection in self-hosted Hoppscotch instances prior to 2026.6.0 allows an authenticated administrator to achieve root-level code execution in the backend container. The updateInfraConfigs GraphQL mutation accepts an attacker-controlled MAILER_SMTP_URL whose path, query, or fragment is parsed by nodemailer into sendmail transport options, turning SMTP configuration into arbitrary command execution once the service restarts and sends mail. No public exploit identified at time of analysis, but the flaw is confirmed and patched upstream in release 2026.6.0.

RemediationAI

Vendor-released patch: 2026.6.0 - upgrade all self-hosted Hoppscotch backend containers to 2026.6.0 or later, which corrects validateSMTPUrl to reject path/query/fragment content that nodemailer would treat as sendmail options (fix commit 73a88c82b1b2cada26cc4b2bc095b54554242239, PR https://github.com/hoppscotch/hoppscotch/pull/6413, advisory https://github.com/hoppscotch/hoppscotch/security/advisories/GHSA-v7q6-r45w-2c6r). If immediate patching is not possible, restrict and audit who holds admin/infra-configuration rights since the mutation requires admin privileges, keep the admin GraphQL endpoint off untrusted networks, and treat the MAILER_SMTP_URL value as security-sensitive by validating that it is a plain host:port SMTP URL with no path, query string, or fragment before it is applied; these controls only reduce exposure and do not close the underlying injection, so upgrading remains the only complete fix. Because the payload fires on restart and mail send, also review the current MAILER_SMTP_URL setting for any injected sendmail options before the next restart.

Affected VersionsENISA

hoppscotch < 2026.6.0

Affected Packages

euvd hoppscotch fix: 2026.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Hoppscotch is an open-source API development platform (a self-hosted Postman/Insomnia alternative) whose admin backend exposes a GraphQL API for runtime configuration. The vulnerable path lives in admin/infra.resolver.ts, where the updateInfraConfigs mutation persists the MAILER_SMTP_URL value used to configure outbound email. The validateSMTPUrl routine in utils.ts is too permissive: it accepts URL path, query, and fragment components that nodemailer subsequently interprets as sendmail transport options rather than as a benign SMTP endpoint. Because nodemailer's sendmail transport can be pointed at an arbitrary binary with attacker-supplied arguments, this maps to CWE-77 (Command Injection) - untrusted input flows into a command the mail subsystem executes, in this case as root inside the backend container.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.2 HIGH

Admin-only infra mutation makes PR:H; network-reachable GraphQL with a straightforward payload gives AV:N/AC:L, and root command execution yields full C/I/A:H.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

1
Patch available
Jul 09, 2026 - 19:01 EUVD

DescriptionCVE.org

Hoppscotch is an open source API development ecosystem. Prior to 2026.6.0, the updateInfraConfigs GraphQL mutation in admin/infra.resolver.ts accepts an attacker-controlled MAILER_SMTP_URL value, and validateSMTPUrl in utils.ts permits path, query, or fragment content that nodemailer parses into sendmail transport options, allowing an admin to execute arbitrary commands as root in the backend container after restart and mail sending. This issue is fixed in version 2026.6.0.

Executive ViewAI

Why It Matters

Hoppscotch self-hosted versions prior to 2026.6.0 contain a command injection flaw allowing authenticated administrators to achieve root-level code execution on backend infrastructure. No public exploit has been identified, but a patch is available. Insider threats or compromised admin accounts could seize container control, access sensitive data, and disrupt API testing operations.

Business Impact: High
Compensating Controls

Apply vendor patch to Hoppscotch 2026.6.0 or later. Interim: Restrict Hoppscotch administrator access to essential personnel only and implement real-time monitoring of configuration mutation events to detect exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
Medium
popular open-source API tool, but self-hosted admin footprint is limited
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy