Description
Hermes Agent before 0.16.0 contains a DNS rebinding vulnerability in WebSocket endpoints that allows remote attackers to bypass Host and Origin validation. FastAPI HTTP middleware does not execute for WebSocket upgrade requests on /api/pty, /api/ws, /api/pub, and /api/events endpoints, enabling attackers to exploit DNS rebinding and inject malicious commands or read terminal output.
Published: 2026-06-17
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in Hermes Agent versions earlier than 0.16.0. It allows attackers to bypass the Host and Origin header checks on WebSocket upgrade requests to the /api/pty, /api/ws, /api/pub, and /api/events endpoints. Because the FastAPI HTTP middleware is not executed for these WebSocket upgrade requests, an attacker can use a DNS rebinding technique to send malicious commands to the agent or read terminal output, leading to remote code execution and compromising confidentiality and integrity of the affected system. The weakness is identified as CWE‑306: Missing Authentication for Critical Function.

Affected Systems

Affected software is Hermes Agent from NousResearch, any deployment running a pre‑0.16.0 version. Users of the default WebSocket endpoints /api/pty, /api/ws, /api/pub, and /api/events are impacted, as the underlying middleware does not validate host or origin during the WebSocket handshake.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity, but the EPSS score of less than 1 % suggests that the vulnerability is unlikely to be widely exploited at present. The attack requires remote network access to the Hermes Agent service and the ability to perform a DNS rebinding attack. While no publicly available exploit is listed and hedged is not in KEV, anyone able to negotiate a WebSocket upgrade to the affected endpoints could deliver harmful payloads. Remediation by upgrading is the recommended path to eliminate the risk.

Generated by OpenCVE AI on June 18, 2026 at 19:19 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Hermes Agent to version 0.16.0 or later.
  • If upgrading is not immediately possible, disable or remove the vulnerable WebSocket endpoints (/api/pty, /api/ws, /api/pub, /api/events) from the service configuration.
  • Implement strict Host and Origin header validation for WebSocket upgrade requests and verify that the FastAPI middleware is applied to all WebSocket paths.

Generated by OpenCVE AI on June 18, 2026 at 19:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 18 Jun 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Nousresearch
Nousresearch hermes-agent
Vendors & Products Nousresearch
Nousresearch hermes-agent

Thu, 18 Jun 2026 16:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 18 Jun 2026 04:45:00 +0000

Type Values Removed Values Added
Description Hermes Agent before 0.16.0 contains a DNS rebinding vulnerability in WebSocket endpoints that allows remote attackers to bypass Host and Origin validation. FastAPI HTTP middleware does not execute for WebSocket upgrade requests on /api/pty, /api/ws, /api/pub, and /api/events endpoints, enabling attackers to exploit DNS rebinding and inject malicious commands or read terminal output.
Title Hermes Agent < 0.16.0 - DNS Rebinding Bypass via WebSocket Endpoints
Weaknesses CWE-306
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Nousresearch Hermes-agent
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-06-18T15:29:39.022Z

Reserved: 2026-06-10T21:23:54.283Z

Link: CVE-2026-53869

cve-icon Vulnrichment

Updated: 2026-06-18T15:29:35.336Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-18T20:30:05Z

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function