Vulnerability · Published Jun 1, 2026 · Assigned by VulDB
CVE-2026-10222NousResearch hermes-agent config.py _sanitize_env_lines injection
Medium 5.6
In plain English
A medium-severity injection in hermes-agent from NousResearch. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | hermes-agent | 0.18.0 | GHSA-mv8x-fg99-32mf |
| PyPI | hermes-agent | 0.18.0 | PYSEC-2026-2513 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| NousResearch | hermes-agent | 2026.4.02026.4.12026.4.22026.4.32026.4.42026.4.52026.4.62026.4.7 |
Weakness: CWE-74, CWE-707 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-367501 | NousResearch hermes-agent config.py _sanitize_env_lines injection vdb-entry, technical-description
- VDB-367501 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- CVE-2026-10222 | CVE Analysis and Report third-party-advisory
- Submit #822020 | NousResearch hermes-agent <= v2026.4.30 Injection (CWE-74) third-party-advisory
- https://gist.github.com/YLChen-007/7ee2eeaa383b3540d2e8854250c03fb0 exploit