Vulnerability  ·  2026-12-02

Hermes Agent permissive CORS/WebSocket origin lets another localhost page steal the dashboard session token and run shell.exec

VulnerabilityHigh impactGlobalCVE-2026-140425
Hermes Agent 0.16.0 before 0.22.7 has permissive CORS and WebSocket origin checks that let other local-port pages steal the dashboard session token, then open /api/ws to call shell.exec and read files via /api/files/download. CVSS 7.0 (AV:L/AC:H).
The Hermes dashboard is the control surface for an autonomous agent that can run OS commands; a cross-origin token theft converts any low-privilege localhost web content into full shell execution and file read as the agent's user.
The dashboard's CORS and WebSocket origin checks are permissive, so attacker content served from another local-port page can read the session token from GET /, open /api/ws, call shell.exec to run OS commands and read files via /api/files/download.
Hermes Agent 0.16.0 before 0.22.7 (NousResearch)
Upgrade to Hermes Agent 0.22.7 or later, which tightens the CORS/WebSocket origin validation.
Rapid7 — CVE-2026-140425GitHub — NousResearch/hermes-agent web_server.py
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →