CVE-2026-118640: n8n: Chat Hub authz bypass lets chat users run tools
MEDIUMn8n's Chat Hub fails to enforce authorization on tool registration, so a user holding only the low-privilege global:chatUser role can add restricted tool types and run them through chat. Those tools can execute sandboxed code, read permitted files, and invoke instance workflows, Data Tables, and agents that the role was never meant to reach. Exposure is limited by the medium rating (CVSS 5.4), the need for a valid low-privilege account, and the absence of KEV listing, a public exploit, a Nuclei template, or an EPSS score. The practical risk is higher than the score suggests, because agent and workflow platforms often hold connected credentials and business data, and many deployments give chat access to broad internal audiences. Upgrade to n8n 1.123.85, 2.43.5, or 2.44.1 or later, and review who holds the chatUser role in the meantime.
What is the risk?
Medium overall. Exploitation is network-reachable with low complexity, low privileges, and no user interaction (CVSS 5.4, C:L/I:L/A:N). There is no KEV listing, no public exploit, no Nuclei template, and no EPSS data, so exploitation likelihood looks low today. Environmental risk rises where chat users are numerous or semi-trusted and where workflows, Data Tables, or agents connect to sensitive systems. The CWE-863 flaw makes it a privilege escalation within the platform.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| n8n | npm | — | No patch |
Do you use n8n? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step1) Upgrade n8n to 1.123.85, 2.43.5, 2.44.1 or later, depending on your release line. 2) Until patched, restrict the global:chatUser role to trusted users or disable Chat Hub access for untrusted accounts. 3) Audit which workflows, Data Tables, and agents are exposed to chat and remove unnecessary exposure. 4) Apply least privilege to credentials used by those workflows. 5) Review execution logs and Chat Hub activity for tool registrations or code-execution runs started by chatUser accounts. 6) Keep the instance off the public internet or behind SSO and network controls.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-118640?
n8n's Chat Hub fails to enforce authorization on tool registration, so a user holding only the low-privilege global:chatUser role can add restricted tool types and run them through chat. Those tools can execute sandboxed code, read permitted files, and invoke instance workflows, Data Tables, and agents that the role was never meant to reach. Exposure is limited by the medium rating (CVSS 5.4), the need for a valid low-privilege account, and the absence of KEV listing, a public exploit, a Nuclei template, or an EPSS score. The practical risk is higher than the score suggests, because agent and workflow platforms often hold connected credentials and business data, and many deployments give chat access to broad internal audiences. Upgrade to n8n 1.123.85, 2.43.5, or 2.44.1 or later, and review who holds the chatUser role in the meantime.
Is CVE-2026-118640 actively exploited?
No confirmed active exploitation of CVE-2026-118640 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-118640?
1) Upgrade n8n to 1.123.85, 2.43.5, 2.44.1 or later, depending on your release line. 2) Until patched, restrict the global:chatUser role to trusted users or disable Chat Hub access for untrusted accounts. 3) Audit which workflows, Data Tables, and agents are exposed to chat and remove unnecessary exposure. 4) Apply least privilege to credentials used by those workflows. 5) Review execution logs and Chat Hub activity for tool registrations or code-execution runs started by chatUser accounts. 6) Keep the instance off the public internet or behind SSO and network controls.
What systems are affected by CVE-2026-118640?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, workflow automation platforms, LLM chat interfaces, multi-user AI agent deployments.
What is the CVSS score for CVE-2026-118640?
CVE-2026-118640 has a CVSS v3.1 base score of 5.4 (MEDIUM). The EPSS exploitation probability is 0.19%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012Valid AccountsAML.T0053AI Agent Tool InvocationAML.T0085.001AI Agent ToolsCompliance Controls Affected
What are the technical details?
Original Advisory
n8n before 1.123.85, 2.43.5, and 2.44.1 contains an authorization bypass vulnerability in Chat Hub that allows chat-only users to register restricted tool types. Users with the global:chatUser role can add and run tools through chat to execute sandboxed code, access permitted files, and use instance workflows, Data Tables, and agents.
Exploitation Scenario
An attacker with a legitimate chatUser account, such as an employee, contractor, or a phished or self-registered user, opens Chat Hub and registers a restricted tool type that the role should not be able to add. They use chat to run sandboxed code and call internal workflows and agents. Through those, they read data from Data Tables and files they are permitted to access, and trigger workflows that use privileged connected credentials. This yields data exposure and unauthorized actions without ever touching the admin interface.
Weaknesses (CWE)
CWE-863 — Incorrect Authorization: The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
- [Architecture and Design] Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
- [Architecture and Design] Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor [REF-7].
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NReferences
Timeline
Related Vulnerabilities
CVE-2026-3366310.0n8n: member role steals plaintext HTTP credentials
Same package: n8nCVE-2026-3366010.0TensorFlow: type confusion NPD in tensor conversion
Same package: n8nCVE-2026-2185810.0n8n: Input Validation flaw enables exploitation
Same package: n8nCVE-2026-275779.9n8n: Code Injection enables RCE
Same package: n8nCVE-2026-274949.9n8n: security flaw enables exploitation
Same package: n8n