Skip to main content

Hermes Agent CVE-2026-9354

| EUVDEUVD-2026-31566 MEDIUM
Improper Encoding or Escaping of Output (CWE-116)
2026-05-24 VulDB GHSA-7pxq-5rjc-m2wr
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Send crafted HTTP request to agent endpoint
  2. Delivery
    Inject malicious format_message parameter
  3. Exploit
    Trigger improper output escaping
  4. Execution
    Manipulate message rendering in Slack/Mattermost
  5. Impact
    Disclose information or disrupt messaging service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding for downstream
Exploitation Conditions

Exploitation requires that the target deployment has either Slack Agent or Mattermost Agent components enabled and accessible via network. The vulnerability is exploitable against default configurations of Hermes Agent versions up to 2026.4.16 with no special configuration changes needed. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms remote unauthenticated exploitation with low attack complexity and no user interaction required. Exploitation is NOT limited by authentication barriers, non-standard deployments, or user-triggered actions. However, actual impact depends on how the format_message functionality is exposed - deployments with network-accessible API endpoints or webhooks for message formatting are directly exploitable, while air-gapped or strictly internal-only deployments face reduced risk. The attack requires the agent to process attacker-controlled input through the vulnerable format_message argument handler.

Impact

The vulnerability presents moderate real-world risk with mixed signals. CVSS 6.5 (Medium) reflects network-based exploitation with no authentication or user interaction required (AV:N/AC:L/PR:N/UI:N), but impact is limited to low integrity and availability (I:L/A:L) with no confidentiality impact (C:N). The CVSS temporal metrics show proof-of-concept exploit exists (E:P) with no remediation level documented (RL:X) and reasonable report confidence (RC:R). Public exploit availability on GitHub significantly lowers the barrier to exploitation. However, EPSS data is not available to assess observed exploitation probability, and the vulnerability is not listed in CISA KEV, suggesting no widespread active exploitation campaigns detected. The scope is unchanged (S:U), limiting blast radius to the vulnerable component itself. Critical missing data: EPSS exploitation probability, SSVC exploitation status, patch availability from vendor. The vendor's non-responsiveness to disclosure raises concerns about ongoing security support. Real-world risk depends heavily on deployment context - organizations using Hermes Agent for Slack/Mattermost integrations in production environments face moderate risk due to the network attack vector and public exploit, while the limited CVSS impact scores suggest exploitation may require chaining with other vulnerabilities for significant damage. Without vendor engagement or patch timeline, this should be prioritized for compensating controls rather than waiting for an official fix.

Exploit ScenarioDerived

An unauthenticated remote attacker crafts a malicious HTTP request to a Hermes Agent API endpoint or webhook, embedding specially crafted format_message parameters with improper escape sequences. When the agent processes this input for Slack or Mattermost message rendering, the unescaped output manipulates message formatting to leak sensitive information from other chat contexts or corrupts message integrity, potentially causing service disruption or information disclosure to unauthorized parties. The public GitHub Gist exploit (https://gist.github.com/YLChen-007/e90fb38ac03284176bae49898a3a46a4) provides ready-to-use attack code requiring minimal technical sophistication.

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 – May 24, 2026

Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers to manipulate message formatting in Slack and Mattermost integrations, potentially leading to information disclosure and service disruption. The vulnerability is exploitable via crafted format_message arguments with low attack complexity and requires no user interaction. Public exploit code is available via GitHub Gist. The vendor did not respond to early disclosure attempts, and no patch availability is documented.

RemediationAI

No vendor-released patch is documented at time of analysis, as the vendor did not respond to early disclosure. Until an official fix becomes available, implement the following compensating controls: Restrict network access to Hermes Agent API endpoints and webhook handlers to trusted IP ranges only, blocking untrusted external access to format_message functionality. Deploy a reverse proxy or web application firewall to inspect and sanitize format_message parameter inputs, blocking payloads containing escape sequences, control characters, or formatting directives outside expected schemas - note this may break legitimate advanced formatting features if used. Disable Slack Agent and Mattermost Agent components entirely if not operationally required, eliminating the attack surface - impact includes loss of chat platform integration capabilities. Implement strict input validation on all external message sources before passing to format_message, though effectiveness depends on understanding the specific escaping flaw. Monitor VulDB (https://vuldb.com/vuln/365317) and NousResearch project channels for vendor response or community patches. Consider migrating to alternative agent frameworks with active security maintenance if vendor remains unresponsive. Review audit logs for suspicious format_message API calls showing manipulation attempts, focusing on unusual character patterns or formatting directives.

Affected VersionsENISA

hermes-agent 2026.4.6
hermes-agent 2026.4.14
hermes-agent 2026.4.8
hermes-agent 2026.4.11
hermes-agent 2026.4.9
hermes-agent 2026.4.15
hermes-agent 2026.4.4
hermes-agent 2026.4.16
hermes-agent 2026.4.13
hermes-agent 2026.4.1
hermes-agent 2026.4.7
hermes-agent 2026.4.3
hermes-agent 2026.4.5
hermes-agent 2026.4.0
hermes-agent 2026.4.2
hermes-agent 2026.4.10
hermes-agent 2026.4.12

Affected Packages

euvd hermes_agent no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The vulnerability affects the Hermes Agent messaging integration layer, specifically the format_message argument handling in Slack Agent and Mattermost Agent components. This is classified as CWE-116 (Improper Encoding or Escaping of Output), indicating the agent fails to properly sanitize or escape output when formatting messages for chat platforms. The affected component (cpe:2.3:a:nousresearch:hermes-agent) processes user-controlled input and renders it to messaging platforms without adequate output encoding. This class of vulnerability typically allows attackers to inject control characters, escape sequences, or formatting directives that bypass intended message boundaries, potentially enabling data exfiltration through crafted responses or disruption of message integrity. The network attack vector suggests the vulnerability can be triggered through API endpoints or webhook handlers that process external message formatting requests.

Know when Mattermost 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:N/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
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 26, 2026 - 19:52 NVD
6.5 (MEDIUM) 5.5 (MEDIUM)

DescriptionCVE.org

A vulnerability was detected in NousResearch hermes-agent up to 2026.4.16. The affected element is an unknown function of the component Slack Agent/Mattermost Agent. The manipulation of the argument format_message results in escaping of output. The attack can be executed remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-25279 CRITICAL
9.9 Feb 24

Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate boa

CVE-2026-48801 HIGH POC
8.7 Jun 26

Denial of service in linkify-it (npm) through v5.0.0 lets remote unauthenticated attackers wedge a rendering worker by s

CVE-2022-4044 MEDIUM POC
6.5 Nov 23

A denial-of-service vulnerability in Mattermost allows an authenticated user to crash the server via multiple large auto

CVE-2022-3257 MEDIUM POC
6.5 Sep 23

Mattermost version 7.1.x and earlier fails to sufficiently process a specifically crafted GIF file when it is uploaded w

CVE-2025-4981 CRITICAL
9.9 Jun 20

A remote code execution vulnerability (CVSS 9.9) that allows authenticated users. Critical severity with potential for s

CVE-2025-20051 CRITICAL
9.9 Feb 24

Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate inp

CVE-2025-12421 CRITICAL
9.9 Nov 27

Mattermost versions 11.0.x <= 11.0.2, 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12 fail to to verify that t

CVE-2025-12419 CRITICAL
9.9 Nov 27

Mattermost versions 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12, 11.0.x <= 11.0.3 fail to properly validat

CVE-2026-4858 CRITICAL
9.9 May 21

Privilege escalation to full administrative control in Mattermost self-hosted server (versions 11.6.0 and earlier in the

CVE-2023-6458 CRITICAL
9.8 Dec 06

Mattermost webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perf

CVE-2020-26276 CRITICAL
9.8 Dec 17

Fleet is an open source osquery manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,

CVE-2025-24490 CRITICAL
9.6 Feb 24

Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to use prepared statemen

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