If you run Hermes Agent with Bot Desktop inside a docker or ssh terminal backend, upgrade to 0.23.2 or later

Hermes Agent: code inside its Docker or SSH backend could set env vars on the agent's own machine, fixed in 0.23.2 · Security incident · GitHub (NousResearch/hermes-agent) · NousResearch · Nov 19, 2026

What happened

On 19 Nov 2026 NousResearch published a high-severity advisory (GHSA-p22p-9ph6-gmrh) for hermes-agent 0.21.6 up to 0.23.2. When Bot Desktop was hosted inside the terminal backend (docker or ssh), the agent read back the screen's env file from a directory any process in that backend could write, and merged every KEY=VALUE line into processes it started on its own machine. Code running in the backend, such as a dependency or script the agent ran there, could set dynamic-loader variables and get code execution on the agent machine as the gateway user, with access to provider keys, tokens, session history and connected accounts. The fix keeps only the six expected keys and stops merging them into local processes.

How to prevent it

Treat anything an agent runs inside a sandbox or container as untrusted, and don't let values written there flow back into processes on the host. Keep agent tools updated and give the host user as few credentials as possible.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

I use Hermes Agent, which can read web pages, files, emails or tool output. Help me reduce the risk of prompt injection (hidden instructions in content the AI reads). 1) List what my setup can access (files, terminal, browser, MCP servers, email, databases) and what it can do without asking me. 2) Point out the riskiest combinations, e.g. reading untrusted content while also having access to secrets or the ability to send data out. 3) Suggest concrete settings: require approval for commands and network calls, remove MCP servers I don't need, use read-only tokens, and keep the tool updated. 4) Give me a short checklist to follow before opening untrusted repos or documents. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.

Why this keeps happening: trusting agents & ai input

An AI agent treats everything it reads as possible instructions: a web page, a README, an email, a code comment or the output of another tool. If that content was written by an attacker, the agent can be steered into running commands, reading files or sending data somewhere it should not.

A quick checklist before you ship

More on this: every trusting agents & ai input story and our related guide.

Tools involved

Hermes Agent stories

Related stories

Source: original post on GitHub (NousResearch/hermes-agent) ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.