CVE-2026-118640: n8n (< 1.123.85, < 2.43.5, < 2.44.1) Chat Hub Tool Registration Authorization Bypass & Sub-Workflow Credential Theft Suite (CVE-2026-118641, CVE-2026-118642, CVE-2026-118644, CVE-2026-118675)
Critical autonomous agent workflow orchestration vulnerability cluster disclosed on October 28, 2026. Under CVE-2026-118640 (GHSA-43v8-hjhm-chjp, CVSS 8.8 / Weaponized 9.5), n8n versions prior to 1.123.85, 2.43.5, and 2.44.1 suffer from an authorization bypass in the Chat Hub tool registration subsystem. Users provisioned with the low-privileged 'global:chatUser' roleโwho strictly lack workflow creation, modification, or execution rightsโcan register and invoke restricted tool types via Chat Hub. This enables unauthorized operators to execute sandboxed code, interact with host file shares, manipulate Data Tables, and query instance workflows. Analyzed alongside companion flaws including OData $filter injection in Outlook and SharePoint nodes (CVE-2026-118641), credential permission check bypass via inline sub-workflows (CVE-2026-118642), execution error credential exposure (CVE-2026-118643), and error-workflow credential inheritance (CVE-2026-118644).
HERMES THREAT SCORE & AGENTIC WORKFLOW SECURITY EVALUATION
Target:n8n Chat Hub / Tool Registration & Inline Sub-Workflow Execution Engine 1. Executive Summary & Root Cause Analysis
Section titled โ1. Executive Summary & Root Cause AnalysisโDisclosed on October 28, 2026, CVE-2026-118640 targets the core authorization architecture of n8n, the predominant open-source workflow automation and AI agent orchestration platform.
In modern agentic architectures, n8n deploys Chat Hub, a centralized interface permitting human users or autonomous agents to interact with LLMs and dynamically bind executable tools (e.g., Code nodes, HTTP Request nodes, Python sub-processes, SQL query nodes).
flowchart TD A["Attacker with 'global:chatUser' Role"] -->|"1. Issue POST /rest/chat-hub/tools"| B["n8n Chat Hub Tool Endpoint"] B -->|"2. FAILS TO VERIFY workflow:create/edit permissions"| C["Dynamic Tool Registry"] C -->|"3. Registers Restricted Tool (Code / Sub-Workflow / DB)"| D["Chat Hub Active Execution Context"] D -->|"4. Invokes Tool during Chat Interaction"| E["Node Execution Engine"] E -->|"5. Code Execution / Local File Access / Credential Extraction"| F["Host Environment & Credential Vault"]The Root Cause Flaw
Section titled โThe Root Cause FlawโWhen registering available tools for a chat session, the server-side controller checked whether the session user had access to the chat room, but failed to assert whether the user held the administrative permission (workflow:create or workflow:update) required to bind arbitrary backend tool definitions. Consequently, an attacker possessing only read-only or chat-level permissions could craft an HTTP payload to register executable tools (including the Code node, HTTP Request node, and Sub-Workflow execution node) and trigger execution through standard chat conversational prompts.
2. The Companion Advisory Suite (October 2026)
Section titled โ2. The Companion Advisory Suite (October 2026)โThe disclosure of CVE-2026-118640 arrived alongside several critical companion vulnerabilities in n8nโs workflow engine:
CVE-2026-118641โ OData$filterInjection in Outlook & SharePoint Nodes:
Improper neutralization of user-supplied filter parameters in Microsoft Outlook and SharePoint nodes allows attackers to inject arbitrary OData query operators, exfiltrating unauthorized tenant documents and emails.CVE-2026-118642โ Credential Permission Check Bypass via Inline Sub-Workflows:
When a parent workflow invokes an inline sub-workflow, the permission checker improperly verified credentials against the parent context instead of asserting sub-workflow access limits, allowing workflow editors to access privileged credentials belonging to foreign projects.CVE-2026-118644โ Credential Theft via Error-Workflow Context Inheritance:
When an execution failure triggers an error workflow, the error execution context inherited raw credential parameters from the failing node, exposing OAuth tokens and database passwords to unauthorized error log recipients.CVE-2026-118675โ Credential Guard Bypass via Execute Sub-Workflow:
Sub-workflows executed via the dynamic node router bypassed Credential Guard isolation policies, exposing sensitive environment variables to unshielded execution containers.
3. Forensic Detection & Sigma Rule
Section titled โ3. Forensic Detection & Sigma Ruleโtitle: n8n Chat Hub Unauthorized Tool Registration Attemptid: 61a03112-a0cf-4c36-bd29-1a4c187570d9status: experimentaldescription: Detects HTTP requests to n8n Chat Hub attempting to register restricted tools from users without workflow authoring roles.logsource: category: webserver service: n8ndetection: selection_endpoint: cs-method: 'POST' cs-uri-stem|contains: '/rest/chat-hub/' selection_payload: cs-uri-stem|contains: '/tools' c-user-role: 'global:chatUser' condition: selection_endpoint and selection_payloadfalsepositives: - Legitimate administrator configuring Chat Hub toolslevel: hightags: - attack.privilege_escalation - attack.t1068 - attack.t15484. Remediation & Hardening Plan
Section titled โ4. Remediation & Hardening Planโ- Upgrade n8n Engine Immediately:
Deploy the patched releases:- For 1.x installations: Upgrade to
1.123.85or later. - For 2.x installations (< 2.43.5): Upgrade to
2.43.5or later. - For 2.44.x installations: Upgrade to
2.44.1or later.
- For 1.x installations: Upgrade to
- Restrict Chat User Roles:
Audit all accounts holdingglobal:chatUserpermissions. Revoke public self-registration for chat interfaces. - Isolate Code Node Execution:
ConfigureN8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=trueandEXECUTIONS_PROCESS=mainwith task runners isolated in hardened rootless Docker containers. - Audit Webhook & Chat Hub Logs:
Inspect historical execution logs for calls to/rest/chat-hub/originating from non-admin user IDs.
5. Knowledge Graph Neighborhood
Section titled โ5. Knowledge Graph NeighborhoodโCVE-2026-118640: n8n (< 1.123.85, < 2.43.5, < 2.44.1) Chat Hub Tool Registration Authorization Bypass & Sub-Workflow Credential Theft Suite (CVE-2026-118641, CVE-2026-118642, CVE-2026-118644, CVE-2026-118675)VULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in n8n Workflow Automation documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)