Skip to content

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)

Density:
C-Level Executive Briefing CVE-2026-118640 CRITICAL SCORE 97/100

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

HYBRID

HERMES THREAT SCORE & AGENTIC WORKFLOW SECURITY EVALUATION

Target: n8n Chat Hub / Tool Registration & Inline Sub-Workflow Execution Engine
Confidence: 99%
97 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 19 / 20
Weaponization 20 / 20
Exposure 19 / 20
Prevalence 19 / 20
Impact 20 / 20
Exploit Maturity 20 / 20
Attack Chain Potential 20 / 20

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"]

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.


The disclosure of CVE-2026-118640 arrived alongside several critical companion vulnerabilities in n8nโ€™s workflow engine:

  1. CVE-2026-118641 โ€” OData $filter Injection 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.
  2. 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.
  3. 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.
  4. 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.

title: n8n Chat Hub Unauthorized Tool Registration Attempt
id: 61a03112-a0cf-4c36-bd29-1a4c187570d9
status: experimental
description: Detects HTTP requests to n8n Chat Hub attempting to register restricted tools from users without workflow authoring roles.
logsource:
category: webserver
service: n8n
detection:
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_payload
falsepositives:
- Legitimate administrator configuring Chat Hub tools
level: high
tags:
- attack.privilege_escalation
- attack.t1068
- attack.t1548

  1. Upgrade n8n Engine Immediately:
    Deploy the patched releases:
    • For 1.x installations: Upgrade to 1.123.85 or later.
    • For 2.x installations (< 2.43.5): Upgrade to 2.43.5 or later.
    • For 2.44.x installations: Upgrade to 2.44.1 or later.
  2. Restrict Chat User Roles:
    Audit all accounts holding global:chatUser permissions. Revoke public self-registration for chat interfaces.
  3. Isolate Code Node Execution:
    Configure N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true and EXECUTIONS_PROCESS=main with task runners isolated in hardened rootless Docker containers.
  4. Audit Webhook & Chat Hub Logs:
    Inspect historical execution logs for calls to /rest/chat-hub/ originating from non-admin user IDs.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

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

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTn8n Workflow Automation
98% VERY_HIGH

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

Supporting Verified Evidence: