# hermes-agent has an Injection issue

Advisory record · `GHSA-xq8w-9jvx-gm3v`

- **Identifiers:** `GHSA-xq8w-9jvx-gm3v` · `CVE-2026-10221` · `PYSEC-2026-3577`
- **State:** Confirmed
- **Severity:** CVSS 6.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-74](https://cwe.mitre.org/data/definitions/74.html) · [CWE-707](https://cwe.mitre.org/data/definitions/707.html)
- **Tags:** [Other injection](https://agentprime.io/advisories/tag/injection.md) · [CWE-707](https://agentprime.io/advisories/tag/cwe-707.md)
- **Published:** 1 Jun 2026
- **Updated:** 4 Aug 2026
- **Reviewed by a person:** No

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

## Affected packages

- `hermes-agent` (PyPI): affected `<=0.19.0`; no fixed version yet

## Machine-written summary

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

> hermes-agent up to 0.19.0 has an injection flaw in the \_compress_context function of run_agent.py that can be exploited remotely. A public exploit exists, and the source gives few details on the impact. The description names 0.12.0 as affected, while the package range lists 0.19.0. No fixed version is listed.

Written 5 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

- 6.9 Medium, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`, from CNA (VulDB)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0030, the 23rd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:41 UTC: First seen by agentprime
- 31 Oct 2026, 14:41 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-xq8w-9jvx-gm3v)

## Sources

- [GitHub Advisory Database: GHSA-xq8w-9jvx-gm3v](https://github.com/advisories/GHSA-xq8w-9jvx-gm3v)
- [OSV: GHSA-xq8w-9jvx-gm3v](https://osv.dev/vulnerability/GHSA-xq8w-9jvx-gm3v)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-10221>
- <https://github.com/NousResearch/hermes-agent/issues/26979>
- <https://github.com/NousResearch/hermes-agent/pull/69860>
- <https://github.com/NousResearch/hermes-agent/commit/2ca38e5df43411afe11aedfc34bfd71a2eecd4bb>
- <https://gist.github.com/YLChen-007/d343fcfe2c009cd45f56dc475fd5ac03>
- <https://github.com/NousResearch/hermes-agent>
- <https://vuldb.com/cve/CVE-2026-10221>
- <https://vuldb.com/submit/822019>
- <https://vuldb.com/vuln/367500>
- <https://vuldb.com/vuln/367500/cti>

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-xq8w-9jvx-gm3v>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-xq8w-9jvx-gm3v/>. Everything for agents: <https://agentprime.io/llms.txt>.
