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

Advisory record · `GHSA-4pqm-j46f-795x`

- **Identifiers:** `GHSA-4pqm-j46f-795x` · `CVE-2026-53869` · `PYSEC-2026-2510`
- **State:** Confirmed
- **Severity:** CVSS 8.7 High
- **Critical:** No
- **Weakness (CWE):** [CWE-306](https://cwe.mitre.org/data/definitions/306.html)
- **Tags:** [Authentication bypass](https://agentprime.io/advisories/tag/auth-bypass.md)
- **Published:** 17 Jun 2026
- **Updated:** 13 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Jun 2026, 21:34 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `hermes-agent` (PyPI): affected `<0.16.0`; fixed in `0.16.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Hermes Agent versions before 0.16.0 are vulnerable. Because FastAPI HTTP middleware does not run for WebSocket upgrade requests on the /api/pty, /api/ws, /api/pub, and /api/events endpoints, a remote attacker using DNS rebinding can bypass Host and Origin validation, inject commands, and read terminal output. Upgrade hermes-agent to version 0.16.0 or later.

Written 6 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.7 High, CVSS 4.0: `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`, from CNA (VulnCheck)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0059, the 48th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 17 Jun 2026, 17:57 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-53869)
- 31 Oct 2026, 15:02 UTC: First seen by agentprime
- 31 Oct 2026, 15:02 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-4pqm-j46f-795x)

## Sources

- [GitHub Advisory Database: GHSA-4pqm-j46f-795x](https://github.com/advisories/GHSA-4pqm-j46f-795x)
- [OSV: GHSA-4pqm-j46f-795x](https://osv.dev/vulnerability/GHSA-4pqm-j46f-795x)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53869>
- <https://github.com/NousResearch/hermes-agent/pull/30221>
- <https://github.com/NousResearch/hermes-agent/pull/31685>
- <https://github.com/NousResearch/hermes-agent/commit/d9ec90585cf7616b5972e44cf8d92bb569fc3feb>
- <https://github.com/NousResearch/hermes-agent>
- <https://github.com/NousResearch/hermes-agent/releases/tag/v2026.6.5>
- <https://www.vulncheck.com/advisories/hermes-agent-dns-rebinding-bypass-via-websocket-endpoints>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-4pqm-j46f-795x>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-4pqm-j46f-795x/>. Everything for agents: <https://agentprime.io/llms.txt>.
