CVE-2026-9366 Details
Description
A vulnerability was found in NousResearch hermes-agent 2026.4.23. The impacted element is the function _scan_context_content of the file agent/prompt_builder.py. The manipulation results in injection. The attack may be performed from remote. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.
A prompt injection vulnerability has been identified in NousResearch Hermes-Agent version 2026.4.23. The issue arises in the context-file injection scanner within the function '_scan_context_content' of 'agent/prompt_builder.py'. This vulnerability allows for the injection of malicious instructions that are executed by the language model (LLM) via the agent's toolset, including commands that could be used for remote code execution. The flaw exists because the regex pattern used to scan context files fails to account for multi-word variations of certain phrases, allowing injected content to bypass the scanner's safeguards. The vulnerability can be exploited by placing a poisoned context file in a directory that the Hermes-Agent will read from when it is executed.
Users can manually edit the context files that Hermes-Agent loads to remove any malicious instructions. However, no official patch is available for this vulnerability at the moment.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 24, 2026CISA-ADP
Assessed May 27, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/YLChen-007/581fd92de5548fbaacb2092e848a75cc | [email protected] | ExploitTechnical Analysis |
| https://vuldb.com/submit/812227 | [email protected] | Permission Required |
| https://vuldb.com/vuln/365329 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/365329/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-707 | Improper Neutralization | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| NousResearch hermes-agent | <= v2026.4.23 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 24, 2026 | New CVE Received | [email protected] |
Volerion