What happened
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).
Why it matters
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.
Attack vector
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.
Affected systems
Hermes Agent 0.16.0 before 0.22.7 (NousResearch)
Mitigation
Upgrade to Hermes Agent 0.22.7 or later, which tightens the CORS/WebSocket origin validation.