VDB
Sign up
MEDIUM5.6

PYSEC-2026-2513

hermes-agent has an Injection issue

Quick fix

PYSEC-2026-2513 — hermes-agent: upgrade to the fixed version with the command below.

pip install --upgrade 'hermes-agent>=0.18.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/hermes-agent
Introduced in: 0Fixed in: 0.18.0
Fixpip install --upgrade 'hermes-agent>=0.18.0'

References