CVE-2026-9354: NousResearch hermes-agent Slack Agent/Mattermost Agent escape output

Published May 24, 2026
·
Updated

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 formatmessage 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.

Affected Software

1 affected component
NousResearch hermes-agent<=2026.4.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove NousResearch hermes-agent from your environment.

    Uninstall NousResearch hermes-agent if Slack/Mattermost integration is not required or until a vendor-provided fix is available.

  2. Configuration

    If possible, disable the Slack Agent / Mattermost Agent or disable processing of the format_message argument in hermes-agent configuration to prevent remote manipulation of format_message that leads to escaped output.

    NousResearch hermes-agent (Slack Agent/Mattermost Agent) Slack Agent/Mattermost Agent / format_message processing = disabled
  3. Compensating control

    Restrict network access to the hermes-agent: block or firewall inbound traffic to the agent's ports, allow only trusted hosts to communicate with it, and isolate the agent from networks where untrusted users can send messages.

  4. Operational

    Monitor logs and message handling related to format_message for signs of exploitation, and perform incident response if any indicators of compromise are found (investigate, contain, and remediate).

Event History

May 24, 2026
CVE Published
via MITRE·04:15 AM
Data Sourced
via MITRE·04:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness
Apr 28, 58520
Event
via FIRST·10:09 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-9354?

The severity of CVE-2026-9354 is medium with a score of 6.5.

2

How do I fix CVE-2026-9354?

To fix CVE-2026-9354, update the NousResearch hermes-agent to version 2026.4.17 or later.

3

What component is affected by CVE-2026-9354?

CVE-2026-9354 affects the Slack Agent/Mattermost Agent component of NousResearch hermes-agent.

4

Can the attack for CVE-2026-9354 be executed remotely?

Yes, the attack for CVE-2026-9354 can be executed remotely.

5

What type of vulnerability is CVE-2026-9354?

CVE-2026-9354 is an output escaping vulnerability resulting from improper handling of the format_message argument.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203