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.

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)0.3%top 81.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
PyPIhermes-agent0.18.0GHSA-mv8x-fg99-32mf
PyPIhermes-agent0.18.0PYSEC-2026-2513

Affected products (as reported)

VendorProductVersions
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