PatchSiren cyber security CVE debrief
CVE-2026-9366 NousResearch CVE debrief
A medium-severity injection vulnerability exists in NousResearch hermes-agent version 2026.4.23, specifically within the `_scan_context_content` function in `agent/prompt_builder.py`. The vulnerability allows remote attackers to perform injection attacks. The exploit has been publicly disclosed, and the vendor was contacted but did not respond. The CVE was published on 2026-05-24 and last modified on 2026-05-26. The vulnerability is currently in 'Deferred' status in the NVD.
- Vendor
- NousResearch
- Product
- hermes-agent
- CVSS
- MEDIUM 5.5
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-05-24
- Original CVE updated
- 2026-07-23
- Advisory published
- 2026-05-24
- Advisory updated
- 2026-07-23
Who should care
Organizations deploying NousResearch hermes-agent 2026.4.23 in production environments, particularly those exposing AI agent interfaces to untrusted or remote users. Security teams responsible for AI/ML application security and prompt injection defenses. Developers building applications on top of hermes-agent who need to understand underlying vulnerabilities in dependencies.
Technical summary
The vulnerability exists in the `_scan_context_content` function within `agent/prompt_builder.py` of NousResearch hermes-agent version 2026.4.23. The function fails to properly neutralize special elements in output, leading to an injection condition (CWE-74, CWE-707). Attackers can exploit this remotely to inject malicious content. The attack vector is network-based with low attack complexity and no required privileges or user interaction. The exploit has been publicly released, increasing the risk of active exploitation.
Defensive priority
medium
Recommended defensive actions
- Review and sanitize all inputs to the `_scan_context_content` function in `agent/prompt_builder.py` to prevent injection attacks
- Implement input validation and output encoding for data processed by the prompt builder
- Consider upgrading to a patched version when available from the vendor
- Monitor for suspicious activity targeting prompt injection vectors in AI agent deployments
- Apply principle of least privilege to limit impact of potential injection attacks
Evidence notes
Vulnerability identified in NousResearch hermes-agent 2026.4.23. The specific vulnerable component is the `_scan_context_content` function in `agent/prompt_builder.py`. CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) and CWE-707 (Improper Neutralization) are associated with this vulnerability. The exploit has been made public. Vendor was contacted but did not respond.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-9366 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-9366
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-9366 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-9366
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://gist.github.com/YLChen-007/581fd92de5548fbaacb2092e848a75cc
-
Source reference
Unverified legacy reference
URL: https://vuldb.com/submit/812227
-
Source reference
Unverified legacy reference
URL: https://vuldb.com/vuln/365329
-
Source reference
Unverified legacy reference
URL: https://vuldb.com/vuln/365329/cti
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.