Description
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.
Published: 2026-07-09
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Hoppscotch is an open‑source API development ecosystem that includes a GraphQL‑based administration interface. In versions prior to 2026.6.0, the updateInfraConfigs mutation accepts an attacker‑controlled MAILER_SMTP_URL value. The validateSMTPUrl routine allows path, query, or fragment components of that URL to be passed to nodemailer, which interprets them as sendmail transport options. This input flaw permits injection of arbitrary shell commands that execute with root privileges inside the backend container after the application restarts or sends an email. The weakness is a classic command‑injection problem involving CWE‑77 and CWE‑78, coupled with a privilege‑escalation discrepancy (CWE‑915).

Affected Systems

All releases of Hoppscotch before 2026.6.0 contain the vulnerability. The exposed component is the GraphQL mutual admin mutation that modifies infrastructure configuration, which is available to users with administrator privileges.

Risk and Exploitability

The CVSS score of 7.2 signals high severity. Based on the description, it is inferred that an attacker must authenticate as an administrator or otherwise have the ability to invoke the GraphQL mutation. After submitting a crafted MAILER_SMTP_URL, the injected commands run when the backend container restarts or an email is dispatched, granting full root access within the container. The EPSS score of < 1% indicates a low likelihood of exploitation in the wild, but the risk remains if administrator credentials are compromised or the GraphQL API is exposed to untrusted users. The vulnerability is not listed in CISA KEV, and no publicly known exploits exist.

Generated by OpenCVE AI on July 29, 2026 at 12:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Hoppscotch deployment to version 2026.6.0 or later.
  • If upgrading is not possible, restrict GraphQL admin access to trusted users and remove any existing MAILER_SMTP_URL settings from the configuration.
  • Apply input validation or sanitization to the SMTP URL field so that embedded command tokens are rejected before processing.

Generated by OpenCVE AI on July 29, 2026 at 12:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 09 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Hoppscotch
Hoppscotch hoppscotch
Vendors & Products Hoppscotch
Hoppscotch hoppscotch

Thu, 09 Jul 2026 18:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Hoppscotch: Admin RCE via MAILER_SMTP_URL nodemailer sendmail-transport injection
Weaknesses CWE-77
CWE-78
CWE-915
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Hoppscotch Hoppscotch
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T19:13:03.635Z

Reserved: 2026-07-06T15:34:16.916Z

Link: CVE-2026-59721

cve-icon Vulnrichment

Updated: 2026-07-09T19:13:00.131Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T12:15:03Z

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-915

    Improperly Controlled Modification of Dynamically-Determined Object Attributes