CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-86996

CVE-2026-86996: Missing Authorization in n8n AI Agent Workflow Tool Execution

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 8, 2026·6 min read·56 visits

Executive Summary (TL;DR)

n8n AI Agents executing workflows as tools bypass configured 'Sub-Workflow Caller Policy' restrictions, enabling low-privileged authenticated users to execute unauthorized workflows.

A missing authorization vulnerability (CWE-862) exists in n8n where AI Agent workflows executing as tools bypass the Sub-Workflow Caller Policy settings, allowing authenticated users with agent creation privileges to invoke unauthorized sub-workflows across project boundaries.

Vulnerability Overview

The n8n workflow automation platform provides multi-user workspace environments designed to segregate projects and resources. To enforce boundary controls, n8n implements the Sub-Workflow Caller Policy, which restricts which workflows can invoke other workflows. This policy is primarily configured via the 'This workflow can be called by' setting, establishing access limits based on workspace, project, or specific workflow identifiers.

With the integration of AI capabilities, n8n introduced AI Agents that can dynamically invoke external functions and workflows as tools. The security architecture relies on these tool executions respecting the same access policies as standard node-based workflow invocations. However, a structural omission in the execution path allows AI Agents to bypass the standard boundary checks entirely.

This vulnerability, tracked as CVE-2026-86996, represents a missing authorization flaw (CWE-862) with a CVSS 4.0 base score of 5.3. An authenticated attacker possessing basic workspace privileges can exploit this gap to execute workflows residing in other, restricted workspaces, leading to unauthorized access to downstream systems and data exfiltration.

Root Cause Analysis

The vulnerability resides in the core Agent execution subsystem within the n8n codebase. Specifically, the file packages/cli/src/modules/agents/tools/workflow-tool-factory.ts is responsible for generating tool definitions and handling execution requests when an AI Agent invokes an attached workflow tool. The core function within this module, executeWorkflow, manages the runtime instantiation and execution pipeline of the target workflow.

In standard execution paths, such as when a workflow executes another workflow using the 'Execute Workflow' node, n8n calls a policy validation utility. This utility, implemented in SubworkflowPolicyChecker.checkForProject, evaluates the caller's project context against the target workflow's 'This workflow can be called by' policy setting. If the caller does not reside within the permitted projects or workspaces, execution is aborted with an authorization error.

In the AI Agent workflow tool factory, this mandatory validation logic was entirely omitted from the execution path. The executeWorkflow function initiated execution directly through the workflow engine without consulting SubworkflowPolicyChecker. As a result, the backend executes the sub-workflow under the context of the workflow engine without verifying that the caller's project owns or has explicit permission to trigger the target workflow.

Code Analysis

Analysis of the vulnerable code path reveals that the engine invoked the target workflow without verifying caller parameters against the sub-workflow's metadata. The following conceptual representation illustrates the omission in the workflow-tool-factory.ts file prior to the patch:

// VULNERABLE CODE PATH
async function executeWorkflow(workflowId: string, inputData: any, context: ExecutionContext) {
  // Missing authorization check
  // The engine directly loads and executes the sub-workflow
  const workflow = await this.workflowRepository.findById(workflowId);
  
  return await this.workflowRunner.run(workflow, inputData);
}

To resolve this flaw, the developers integrated the policy checker into the execution pipeline of the workflow tool factory. The patched implementation enforces project and workspace alignment by explicitly validating the executing context prior to running the target workflow:

// PATCHED CODE PATH
async function executeWorkflow(workflowId: string, inputData: any, context: ExecutionContext) {
  const targetWorkflow = await this.workflowRepository.findById(workflowId);
  
  // ENFORCED AUTHORIZATION CHECK
  // Verifies that the current project context has permission to call the target sub-workflow
  await this.subworkflowPolicyChecker.checkForProject({
    targetWorkflow,
    callerProjectId: context.projectId,
    callerWorkflowId: context.workflowId,
  });
  
  return await this.workflowRunner.run(targetWorkflow, inputData);
}

By placing the checkForProject call before the execution runner, n8n guarantees that any execution attempt originating from an AI Agent tool configuration is blocked if it violates the caller policy. This design completely aligns the AI Agent tool path with the security controls governing traditional sub-workflow nodes.

Exploitation Methodology

Exploitation of CVE-2026-86996 does not require advanced privileges or complex networking setup. The attacker must possess an authenticated account on the target n8n instance with permissions sufficient to create or edit AI Agents. The process begins with the attacker identifying the target workflow ID of a restricted workflow, which can often be obtained via internal enumeration or application resource mapping.

Once the target workflow ID is acquired, the attacker configures a malicious AI Agent within a workspace under their control. The attacker adds the restricted workflow as an executable tool to this agent. Because the UI and API allow configuring arbitrary workflow IDs as tools, this step succeeds despite the cross-project or restrictive policy boundaries defined on the target workflow.

To trigger the exploit, the attacker sends a natural language prompt to the AI Agent instructing it to invoke the attached tool and return the output. The AI Agent initiates the execution process via the workflow-tool-factory.ts pathway. Due to the missing authorization check, the backend executes the sensitive workflow, retrieves the results, and hands them back to the agent. The agent then displays the returned database records, API tokens, or internal execution logs directly to the attacker.

Impact Assessment

The security impact of this vulnerability is characterized by unauthorized execution and subsequent information disclosure. An attacker can execute arbitrary workflows that they are not authorized to access. This can result in unauthorized modifications if the target workflow performs state-changing actions such as updating internal databases, modifying system configurations, or executing external HTTP API requests with administrative credentials.

Additionally, because the execution results are returned to the calling AI Agent, the attacker gains direct access to sensitive execution outputs. This leads to the exposure of confidential records, customer data, and system keys processed by the sub-workflow. The CVSS 4.0 score of 5.3 reflects the localized nature of the impact, as the attacker must already hold valid authenticated access to the platform.

No active exploitation in the wild has been observed, and there are currently no public proof-of-concept exploits available. This reduces the immediate risk for organizations that limit access to fully trusted internal developers. However, the ease of exploitation makes immediate remediation critical for multi-tenant and enterprise installations where user isolation is a primary security boundary.

Remediation and Mitigation Guidance

The primary remediation strategy for CVE-2026-86996 is upgrading the n8n application to a patched release. The fix is backported and available in versions 2.37.7 and 2.38.2. Administrators should apply these updates immediately to secure their execution environments.

If upgrading cannot be scheduled immediately, several temporary mitigations can reduce the attack surface. Administrators should audit all active AI Agent configurations across all workspaces to identify and remove unauthorized workflow tools. Additionally, restricting the permission to create or modify AI Agents to administrative users prevents lower-privileged accounts from initiating the exploit path.

Organizations should also enforce network-level or application-level access controls to ensure only authorized personnel can access the n8n interface. These compensating controls limit exposure but do not replace the necessity of applying the software updates.

Technical Appendix

CVSS Score
5.3/ 10
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Affected Systems

n8n Workflow Automation Platform

Affected Versions Detail

Product
Affected Versions
Fixed Version
n8n
n8n
< 2.37.72.37.7
n8n
n8n
>= 2.38.0 and < 2.38.22.38.2
AttributeDetail
CWE IDCWE-862
Attack VectorNetwork (AV:N)
CVSS v4.05.3
ImpactPartial Confidentiality & Integrity Loss
Exploit StatusNone (No Public PoC)
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-862
Missing Authorization

The software does not perform an authorization check when an actor attempts to access a resource or perform an action.

References & Sources

  • [1]GHSA-7hgx-277f-7vmg
  • [2]n8n v2.37.7 Release Tag
  • [3]n8n v2.38.2 Release Tag
  • [4]CVE-2026-86996 Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•14 minutes ago•CVE-2026-126297
7.5

CVE-2026-126297: Algorithmic Complexity Denial of Service in NLTK ConllCorpusReader

CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).

Amit Schendel
Amit Schendel
0 views•12 min read
•about 1 hour ago•CVE-2026-126298
7.5

CVE-2026-126298: Quadratic Algorithmic Complexity Denial of Service in NLTK Tree.chomsky_normal_form

CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.

Alon Barad
Alon Barad
3 views•12 min read
•about 2 hours ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
4 views•10 min read
•about 3 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 4 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 5 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
5 views•10 min read