CVE-2026-53869

Hermes Agent < 0.16.0 - DNS Rebinding Bypass via WebSocket Endpoints

Published Jun 17, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Github GHSA Github GHSA GHSA-4pqm-j46f-795x Hermes Agent contains a DNS rebinding vulnerability in WebSocket endpoints that allows remote attackers to bypass Host and Origin validation
History
Type Values Removed Values Added
First Time appeared Nousresearch
Nousresearch hermes-agent
Vendors & Products Nousresearch
Nousresearch hermes-agent
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:05 PM
Reserved
Jun 10, 2026, 9:23 PM
Status
Deferred
Published
Jun 17, 2026, 7:18 PM
Modified
Oct 26, 2026, 11:10 AM