Advisory

PYSEC-2026-2510

Also known as: CVE-2026-53869, GHSA-4pqm-j46f-795x

Summary

Hermes Agent contains a DNS rebinding vulnerability in WebSocket endpoints that allows remote attackers to bypass Host and Origin validation

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-13 15:46 UTC
Modified
2026-07-13 16:31 UTC

Affected packages and fixes

hermes-agent

PyPI · All systems

Affected

  • introduced 0, fixed 0.16.0 (ecosystem)

Fixed versions

0.16.0

Fix

  • Fixed version 0.16.0
    pip install --upgrade hermes-agent==0.16.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences