Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
2DescriptionCVE.org
A weakness has been identified in NousResearch hermes-agent up to 2026.4.23. This issue affects the function _make_run_env of the file tools/environments/local.py of the component Messaging Gateway Handler. Executing a manipulation can lead to information disclosure. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
AnalysisAI
Information disclosure in NousResearch hermes-agent allows remote unauthenticated attackers to extract sensitive data via crafted requests to the Messaging Gateway Handler's environment configuration function. The vulnerability affects versions up to 2026.4.23 with publicly available exploit code demonstrating the attack. EPSS data not provided, but public POC availability increases immediate risk. Vendor has not responded to disclosure, suggesting no official patch timeline.
Technical ContextAI
The vulnerability resides in the _make_run_env function within tools/environments/local.py, which handles environment configuration for the Messaging Gateway Handler component of hermes-agent. The affected product (CPE: cpe:2.3:a:nousresearch:hermes-agent) is an AI agent framework from NousResearch. The root cause is CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor), indicating the function improperly exposes environment variables, configuration details, or internal system information that should remain protected. The Messaging Gateway Handler likely processes incoming agent communication requests, and the _make_run_env function appears responsible for setting up execution contexts with access to potentially sensitive runtime configuration.
RemediationAI
No official vendor patch is available as NousResearch has not responded to vulnerability disclosure. Organizations running hermes-agent <=2026.4.23 should implement the following compensating controls in order of priority: (1) Restrict network access to the Messaging Gateway Handler using firewall rules or network segmentation to trusted IP ranges only, reducing AV:N to AV:A; trade-off is reduced agent accessibility for legitimate remote clients. (2) Implement authentication proxy or API gateway in front of hermes-agent endpoints to enforce PR:L/PR:H requirements, though this may break existing integrations expecting unauthenticated access. (3) Review tools/environments/local.py code (specifically _make_run_env function) to identify exposed environment variables and sanitize or remove sensitive data from runtime environment; this requires code modification skills and introduces maintenance burden for future updates. (4) Monitor logs for unusual queries to environment configuration endpoints using patterns from the public exploit (https://gist.github.com/YLChen-007/760b3940f708990e535214529c0c7a27). Consider migrating to alternative AI agent frameworks with active security maintenance if NousResearch remains unresponsive.
More in Hermes Agent
View allRemote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands
Path traversal in NousResearch hermes-agent (all versions through 2026.5.16) exposes arbitrary server-side files via the
Path traversal in NousResearch hermes-agent through version 2026.4.16 allows remote unauthenticated attackers to bypass
Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipula
Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _comp
Remote injection in NousResearch Hermes Agent through version 2026.4.30 allows unauthenticated attackers to manipulate t
Code injection in NousResearch hermes-agent 2026.4.23 allows remote unauthenticated attackers to inject and execute arbi
Remote injection vulnerability in NousResearch hermes-agent versions up to 2026.4.23 enables unauthenticated attackers t
Uncontrolled resource consumption in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenti
Missing authorization in NousResearch hermes-agent versions up to 2026.4.16 allows remote attackers to bypass authentica
A vulnerability was identified in NousResearch hermes-agent 0.8.0. Affected by this issue is some unknown functionality
DNS rebinding in NousResearch Hermes Agent prior to 0.16.0 allows remote attackers to reach privileged local WebSocket e
Same weakness CWE-200 – Information Exposure
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-31564
GHSA-8r48-r96c-p95w