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-9366

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

CVE-2026-9366 is a remote code execution flaw in NousResearch hermes-agent 2026.4.23 affecting the _scan_context_content function. This article covers technical details, affected versions, exploit availability, and mitigation.

Published: May 28, 2026

CVE-2026-9366 Overview

CVE-2026-9366 is an injection vulnerability [CWE-74] affecting NousResearch hermes-agent version 2026.4.23. The flaw resides in the _scan_context_content function within agent/prompt_builder.py. An attacker can manipulate input processed by this function to inject content into the agent prompt pipeline, with the attack reachable over the network and requiring no authentication or user interaction. A public exploit has been released, and the vendor did not respond to disclosure attempts.

Critical Impact

Remote, unauthenticated attackers can inject content into the agent's prompt construction logic, potentially altering model behavior, leaking context data, or manipulating downstream actions taken by the agent.

Affected Products

  • NousResearch hermes-agent version 2026.4.23
  • Component: agent/prompt_builder.py
  • Function: _scan_context_content

Discovery Timeline

  • 2026-05-24 - CVE-2026-9366 published to NVD
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2026-9366

Vulnerability Analysis

The vulnerability is classified under [CWE-74] as an improper neutralization of special elements in output used by a downstream component. The defect exists in the _scan_context_content function of agent/prompt_builder.py, which processes contextual content before that content is incorporated into a constructed prompt. Because the function does not adequately neutralize attacker-controlled markers or directives within the context, injected content can alter how the agent interprets subsequent instructions.

This class of issue is commonly described as prompt injection when applied to large language model (LLM) agent frameworks. The agent treats supplied context as trusted input, allowing crafted payloads to override system instructions, exfiltrate context, or trigger unintended tool calls.

Root Cause

The root cause is missing or insufficient sanitization within _scan_context_content. Content scanned and passed into the prompt builder is not separated from authoritative instructions, so adversarial strings embedded in context are concatenated directly into the final prompt. The vendor was contacted but did not respond, leaving the defect unaddressed at publication.

Attack Vector

The attack is remotely exploitable across a network path. An attacker supplies content that reaches _scan_context_content through any channel the agent ingests, such as documents, retrieved web data, or upstream tool output. Once embedded, the injected directives are evaluated by the LLM as if issued by the operator. A proof-of-concept has been published publicly on GitHub Gist and indexed by VulDB. See the GitHub Gist PoC Repository and VulDB #365329 for technical details.

Detection Methods for CVE-2026-9366

Indicators of Compromise

  • Anomalous tool invocations or shell-like instructions appearing in agent context logs that did not originate from the system prompt.
  • Outbound requests to unfamiliar domains immediately following ingestion of external content.
  • Repeated prompt patterns in prompt_builder traces containing role markers, instruction overrides, or delimiter escapes.

Detection Strategies

  • Log every input passed to _scan_context_content and compare against allow-listed schemas before prompt assembly.
  • Apply heuristic and regex scanning for known prompt-injection tokens (for example, role tags, system overrides, and base64 blobs) in retrieved context.
  • Correlate agent decisions with the source of context content to identify cases where untrusted input drove privileged actions.

Monitoring Recommendations

  • Centralize hermes-agent runtime logs and alert on deviations between expected and observed tool-call sequences.
  • Monitor network egress from hosts running the agent for connections that follow ingestion of third-party content.
  • Track version and dependency state of hermes-agent to ensure deployments do not regress to 2026.4.23.

How to Mitigate CVE-2026-9366

Immediate Actions Required

  • Inventory all deployments running hermes-agent2026.4.23 and isolate them from sensitive data sources until remediation is in place.
  • Disable or gate the code paths that invoke _scan_context_content on untrusted input.
  • Restrict network exposure of the agent to authenticated, trusted callers only.

Patch Information

No vendor patch is available. The vendor did not respond to disclosure, and no fixed version has been published. Operators should track the upstream repository for updates and apply community-maintained mitigations where appropriate.

Workarounds

  • Pre-process all external content through a sanitization layer that strips instruction markers and role delimiters before it reaches prompt_builder.py.
  • Enforce strict separation between system instructions and user or retrieved context using structured message formats.
  • Constrain the agent's tool surface so that any injected directives cannot trigger destructive actions without out-of-band approval.
  • Rate-limit and authenticate all interfaces that feed context to the agent to reduce remote attack surface.

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:L/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 PoC Repository

  • VulDB Submission #812227

  • VulDB #365329

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

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

  • CVE-2026-9354: 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