CVE-2026-10222 Details
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.
A semantic injection vulnerability has been identified in NousResearch Hermes-Agent versions through 2026.4.30. The issue resides in the environment variable parser function `_sanitize_env_lines` within `hermes_cli/config.py`. This vulnerability allows for the injection of arbitrary configuration variables by embedding known key names into credential values. When a user saves a crafted API key, the parser inadvertently splits the line, creating a new variable declaration. This exploitation can intercept API calls, exfiltrate prompts, and steal credentials. The vulnerability is present in the default `.env` file parsing behavior, without requiring special permissions or configurations.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 1, 2026CISA-ADP
Assessed Jun 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/YLChen-007/7ee2eeaa383b3540d2e8854250c03fb0 | [email protected] | ExploitTechnical Description |
| https://vuldb.com/cve/CVE-2026-10222 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/822020 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/367501 | [email protected] | BundlePermission Required |
| https://vuldb.com/vuln/367501/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-707 | Improper Neutralization | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| NousResearch hermes-agent | <= v2026.4.30 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | New CVE Received | [email protected] |
Volerion