Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/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 Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
3Blast Radius
ecosystem impact- 13 pypi packages depend on hermes-agent (13 direct, 1 indirect)
Ecosystem-wide dependent count for version 0.19.0.
DescriptionCVE.org
A vulnerability was identified in NousResearch hermes-agent up to 0.12.0. Affected by this vulnerability is the function _compress_context of the file run_agent.py. The manipulation leads to injection. It is possible to initiate the attack remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.
AnalysisAI
Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _compress_context function within run_agent.py (CWE-74). Publicly available exploit code exists and the issue is remotely triggerable without authentication per the CVSS vector, though impact is bounded to Low across confidentiality, integrity, and availability. The vendor was contacted but did not respond, leaving downstream users without an official fix at time of analysis.
Technical ContextAI
Hermes Agent is an LLM-based autonomous agent framework from NousResearch; the affected logic resides in run_agent.py within _compress_context, a routine responsible for summarizing or compressing accumulated context (likely tool outputs, memory, or conversation history) before it is reinjected into the model loop. CWE-74 (Improper Neutralization of Special Elements - Injection) indicates that attacker-influenced data flows into a downstream interpreter (a prompt, shell, eval, or templating layer) without sufficient sanitization. In agent frameworks this class of bug typically enables prompt injection or command/code injection through poisoned context that the agent later acts upon. CPE coverage is cpe:2.3:a:nousresearch:hermes-agent:*:*:*:*:*:*:*:*, indicating all versions up to and including 0.12.0 are in scope.
RemediationAI
No vendor-released patch identified at time of analysis; the vendor was reportedly contacted but did not respond. Operators should monitor the NousResearch Hermes Agent repository for a fixed release and, in the interim, audit and harden _compress_context in run_agent.py by strictly validating, escaping, or stripping control tokens, delimiters, and instruction-like substrings from any external content (tool outputs, retrieved documents, user messages) before it is concatenated into the compressed context that is fed back to the LLM or to any downstream interpreter. Compensating controls include restricting which tools and data sources the agent can ingest (disable web fetching or untrusted retrieval connectors - trade-off: reduced agent capability), running the agent under a least-privileged service account and sandbox so any code-execution side effect of injection is contained (trade-off: deployment complexity), and gating outbound actions behind human-in-the-loop confirmation (trade-off: throughput). Consult VulDB at https://vuldb.com/vuln/367500 and the PoC at https://gist.github.com/YLChen-007/d343fcfe2c009cd45f56dc475fd5ac03 to derive concrete sanitization rules.
More in Hermes Agent
View allRemote code execution in NousResearch Hermes Agent 0.18.2-0.21.0 allows an unauthenticated attacker to execute arbitrary
Remote 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
Path traversal in NousResearch hermes-agent 0.8.0 exposes arbitrary server-side files to unauthenticated remote attacker
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
Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t
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
Same technique Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-33554
GHSA-xq8w-9jvx-gm3v