A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-9354

CVE-2026-9354: Hermes-Agent RCE Vulnerability

CVE-2026-9354 is a remote code execution flaw in NousResearch hermes-agent affecting Slack and Mattermost agents through message format manipulation. This post covers technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-9354 Overview

CVE-2026-9354 is an output escaping vulnerability in NousResearch hermes-agent versions up to 2026.4.16. The flaw resides in the Slack Agent and Mattermost Agent components, where manipulation of the format_message argument leads to improper neutralization of output ([CWE-74]). The issue can be triggered remotely without authentication or user interaction. A public exploit example has been released, increasing the risk of opportunistic abuse. According to the disclosure record, the vendor was contacted prior to public disclosure but did not respond.

Critical Impact

Remote, unauthenticated attackers can inject crafted content through the format_message argument, affecting the integrity and availability of downstream Slack and Mattermost messaging surfaces handled by hermes-agent.

Affected Products

  • NousResearch hermes-agent versions up to and including 2026.4.16
  • hermes-agent Slack Agent component
  • hermes-agent Mattermost Agent component

Discovery Timeline

  • 2026-05-24 - CVE-2026-9354 published to the National Vulnerability Database (NVD)
  • 2026-05-26 - Last updated in the NVD database
  • 2026-05-28 - EPSS score recorded at 0.044%

Technical Details for CVE-2026-9354

Vulnerability Analysis

The vulnerability sits in the message formatting path used by the Slack and Mattermost agents within hermes-agent. The format_message argument is processed without sufficient output neutralization, which is the behavior categorized under [CWE-74] (Improper Neutralization of Special Elements in Output). Attackers can supply crafted input that alters how the agent's output is interpreted by the downstream channel. Because the agents relay structured messages into chat platforms, improperly escaped content can change message semantics, embed unintended directives, or influence agent decisions that consume the output. The attack is reachable across the network and requires no privileges or user interaction.

Root Cause

The agent constructs outbound messages by interpolating attacker-controllable data into the format_message argument without performing context-aware escaping for the target chat platform. Special characters and formatting tokens reach the rendering layer intact, so the boundary between trusted template content and untrusted input collapses at the output stage.

Attack Vector

An unauthenticated remote actor submits crafted content that flows into the format_message argument of the Slack or Mattermost agent. When the agent renders or relays the message, the injected payload is treated as formatting or control content rather than literal text. A public proof-of-concept demonstrating the technique is referenced in the GitHub Gist exploit example and in the VulDB Vulnerability #365317 record.

No verified exploit code is reproduced here. Refer to the linked advisories for technical reproduction details.

Detection Methods for CVE-2026-9354

Indicators of Compromise

  • Outbound Slack or Mattermost messages from hermes-agent containing unexpected formatting tokens, control characters, or embedded markup that did not originate from a configured template.
  • Log entries showing format_message invocations with payloads containing escape sequences, backticks, or platform-specific formatting directives sourced from untrusted callers.
  • Anomalous bot-driven posts in Slack or Mattermost channels that reference commands or links not present in legitimate agent workflows.

Detection Strategies

  • Inspect agent runtime logs for format_message calls and compare argument structure against expected template shapes.
  • Correlate inbound API or webhook traffic to hermes-agent with outbound chat platform posts to identify input-to-output injection patterns.
  • Apply content inspection at the chat platform API boundary to flag messages containing control sequences inconsistent with normal agent output.

Monitoring Recommendations

  • Forward hermes-agent application logs and chat platform audit logs into a centralized analytics pipeline for correlation.
  • Alert on first-seen formatting patterns originating from hermes-agent service accounts.
  • Track version strings of deployed hermes-agent instances to confirm none remain at 2026.4.16 or earlier after remediation.

How to Mitigate CVE-2026-9354

Immediate Actions Required

  • Inventory all hermes-agent deployments and confirm version. Treat any instance at or below 2026.4.16 as vulnerable.
  • Restrict network reachability of the Slack and Mattermost agent endpoints to trusted callers only until a fixed version is available.
  • Disable or unbind the Slack Agent and Mattermost Agent components if they are not in active use.
  • Review recent chat channel activity for posts that may reflect exploitation attempts.

Patch Information

At the time of publication, no vendor advisory or fixed release has been published by NousResearch. The disclosure record indicates the vendor did not respond to the disclosure attempt. Monitor the upstream project and the VulDB Vulnerability #365317 entry for updated remediation guidance.

Workarounds

  • Wrap calls to the Slack and Mattermost agents with an input sanitization layer that strips or escapes platform-specific formatting characters before they reach format_message.
  • Enforce strict allow-lists on which upstream sources can submit content that ultimately flows into format_message.
  • Route agent output through a templating gateway that performs context-aware escaping for Slack mrkdwn and Mattermost markdown rendering.
  • Rotate Slack and Mattermost bot tokens used by hermes-agent and reduce their scopes to the minimum required for production workflows.
bash
# Example: restrict network exposure of hermes-agent to an internal CIDR
# using iptables until a vendor fix is released
iptables -A INPUT -p tcp --dport 8080 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechNousresearch

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-74
  • Technical References
  • GitHub Gist Exploit Example

  • VulDB Submission #812226

  • VulDB Vulnerability #365317

  • VulDB CTI for #365317
  • Related CVEs
  • CVE-2026-9368: NousResearch hermes-agent RCE Vulnerability

  • CVE-2026-9366: NousResearch hermes-agent RCE Vulnerability

  • CVE-2026-9353: NousResearch hermes-agent RCE Vulnerability

  • CVE-2026-9369: Hermes-Agent Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English