Skip to main content

Hermes Agent CVE-2026-10221

| EUVDEUVD-2026-33554 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-06-01 VulDB GHSA-xq8w-9jvx-gm3v
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed Hermes Agent instance
  2. Delivery
    Inject crafted content via tool or input channel
  3. Exploit
    Content flows into _compress_context in run_agent.py
  4. Execution
    Injection survives compression and is reinterpreted
  5. Persist
    Agent executes attacker-directed instructions or tool calls
  6. Impact
    Data exfiltration or unauthorized action

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

A reachable deployment of NousResearch Hermes Agent at version 0.12.0 or earlier whose agent loop invokes _compress_context in run_agent.py on content the attacker can influence - typically through a tool, retriever, web fetch, or user-input channel that feeds untrusted text into the context-compression step. Per CVSS AV:N/AC:L/PR:N/UI:N, no authentication or user interaction is required once such an input path exists. Exploitation is limited by whether the deployment actually exposes an attacker-influenceable input to the compression routine (purely local, sandboxed, or fully-trusted-input deployments are not reachable), and by the Low C/I/A impact scoping, which constrains realistic damage absent additional downstream sinks (e.g., a tool that executes shell commands on injected output).

Impact

Signals are mixed and should be weighed carefully. The CVSS 3.1 base of 7.3 with vector AV:N/AC:L/PR:N/UI:N reflects a remote, low-complexity, unauthenticated trigger, but the C:L/I:L/A:L impact metrics indicate the analyst rated impact as limited rather than full system compromise - consistent with an injection that affects agent behavior or output rather than the host. Exploit Code Maturity is Proof-of-Concept (E:P) and Report Confidence is Reasonable (RC:R), aligning with the publicly available PoC gist. There is no EPSS score, no CISA KEV listing, and no SSVC decision provided, so this is best characterized as publicly exploitable but not confirmed actively exploited. A key caveat: the source is VulDB and the vendor did not respond, so affected-version scoping and root-cause attribution have not been independently validated, which warrants confirmation by reading run_agent.py directly before treating CVSS as authoritative.

Exploit ScenarioDerived

An attacker supplies content - via a URL the agent fetches, a tool response it consumes, a document it retrieves, or a user-supplied message - that contains crafted markers which survive into the _compress_context output and are reinterpreted as instructions or code on the next agent iteration. Because a public PoC exists on the YLChen-007 gist and the CVSS vector is AV:N/AC:L/PR:N/UI:N, an external attacker who can influence any content the agent processes can trigger the injection without authentication. The realistic outcome is hijacked agent behavior, leaked context, or invocation of unintended tool calls rather than direct host compromise, consistent with the Low impact ratings.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 01, 2026

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.

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.

Affected VersionsENISA

hermes-agent 0.3
hermes-agent 0.6
hermes-agent 0.12.0
hermes-agent 0.2
hermes-agent 0.10
hermes-agent 0.8
hermes-agent 0.11
hermes-agent 0.5
hermes-agent 0.4
hermes-agent 0.9
hermes-agent 0.1
hermes-agent 0.7

Affected Packages

pypi hermes-agent no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Hermes Agent gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jun 01, 2026 - 04:22 NVD
HIGH MEDIUM
CVSS changed
Jun 01, 2026 - 04:22 NVD
7.3 (HIGH) 5.5 (MEDIUM)

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.

Executive ViewAI

Why It Matters

Organizations using NousResearch Hermes Agent (through v0.12.0) face immediate risk from remote attackers who can inject malicious prompts without credentials, potentially achieving code execution in autonomous systems. This vulnerability is already publicly exploited and exposes any application relying on Hermes Agent for decision-making or system operations. Leadership must prioritize immediate isolation and alternative remediation, as the vendor has not provided a patch.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce strict input validation and rate-limiting on all prompts supplied to Hermes Agent; (2) Run agent processes with least-privilege credentials and isolated containers; (3) Deploy network segmentation restricting agent egress to approved endpoints; (4) Enable comprehensive logging and alerting on agent inputs, outputs, and execution patterns for detection of exploitation attempts; (5) Disable Hermes Agent deployment pending migration to alternative solutions.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Related Vulnerabilities in hermes-agent Prompt and Context Injection Flaws

View all 2
CVE-2026-71963 HIGH POC
8.6 Sep 03

Remote code execution in NousResearch Hermes Agent 0.18.2-0.21.0 allows an unauthenticated attacker to execute arbitrary

CVE-2026-9367 MEDIUM POC
5.5 May 24

Remote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands

CVE-2026-14628 MEDIUM POC
5.5 Jul 04

Path traversal in NousResearch hermes-agent (all versions through 2026.5.16) exposes arbitrary server-side files via the

CVE-2026-9351 MEDIUM POC
5.5 May 24

Path traversal in NousResearch hermes-agent through version 2026.4.16 allows remote unauthenticated attackers to bypass

CVE-2026-9368 MEDIUM POC
5.5 May 24

Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipula

CVE-2026-7396 MEDIUM POC
5.5 Apr 29

Path traversal in NousResearch hermes-agent 0.8.0 exposes arbitrary server-side files to unauthenticated remote attacker

CVE-2026-9366 MEDIUM POC
5.5 May 24

Code injection in NousResearch hermes-agent 2026.4.23 allows remote unauthenticated attackers to inject and execute arbi

CVE-2026-9354 MEDIUM POC
5.5 May 24

Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t

CVE-2026-9353 MEDIUM POC
5.5 May 24

Remote injection vulnerability in NousResearch hermes-agent versions up to 2026.4.23 enables unauthenticated attackers t

CVE-2026-10224 MEDIUM POC
5.5 Jun 01

Uncontrolled resource consumption in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenti

CVE-2026-9350 MEDIUM POC
5.5 May 24

Missing authorization in NousResearch hermes-agent versions up to 2026.4.16 allows remote attackers to bypass authentica

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy