NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-86996: n8n: Agent Workflow Tool Bypasses Sub-Workflow Caller Policy

mediumCVSS 4.0 5.3GHSA-7hgx-277f-7vmg

n8n did not apply a workflow's "This workflow can be called by" setting when that workflow was attached to an Agent as a tool. A user who can build an Agent can call a restricted workflow and read its output. Fixed in n8n 2.37.7 and 2.38.2.

Published Sep 8, 2026 · Analysis Oct 24, 2026

What an attacker can do

In n8n, the "This workflow can be called by" setting limits which workflows may invoke a sub-workflow. The Execute Workflow node enforced it. The Agent tool path did not check it. If a workflow owner restricted callers, any user who could create an Agent could still add that workflow as a tool, run it, and read the returned data.

The attacker needs an authenticated n8n account with permission to build Agents, and network access to the instance. They do not need access to the restricted workflow itself. What they get is whatever the workflow returns. That could be records from a database, results from an API call made with credentials the workflow holds, or other internal data. The CVSS 4.0 vector rates confidentiality and integrity impact as low, because the attacker can run the workflow but only gets what its output exposes. If the workflow has side effects, running it can also change data.

The flaw is a missing authorization check (CWE-862). It matters most on shared instances where owners rely on caller policy to fence off sensitive sub-workflows.

Who is affected

n8n before 2.37.7, and versions from 2.38.0 up to but not including 2.38.2. Instances with several users who can build Agents, and sub-workflows restricted by caller policy, are the exposed case.

npm ls n8n

For Docker, check the image tag. The version also shows in the n8n UI under Help, then About.

n8n

Ecosystem
npm
Affected
>= 2.38.0, < 2.38.2
Fixed in
2.38.2
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
< 2.37.7
Fixed in
2.37.7
Check
npm ls n8n

How to fix it

Upgrade to 2.37.7 if you run the 2.37 line, or 2.38.2 if you run 2.38. Later versions also include the fix.

npm install [email protected]

The patch applies the sub-workflow caller policy on the Agent tool path. If you cannot upgrade yet, the advisory suggests these temporary steps, which do not fully remove the risk:

  • Restrict instance access to fully trusted users.
  • Audit workflows attached as Agent tools and review their caller policy.
  • Remove sensitive workflows from Agent tool configurations until patched.

How to tell if you were hit

Review the Agent nodes across your instance for workflows attached as tools that are set to a restricted "This workflow can be called by" policy and that the Agent's owner does not own. Check the execution history of sensitive sub-workflows for runs triggered by an Agent execution instead of an Execute Workflow node, especially from accounts that are not on the allowed list.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

A workflow's "_This workflow can be called by_" setting was enforced by the Execute Workflow node but was not consulted when the same workflow was attached to an Agent as a tool. A user who could build an Agent could therefore call a workflow that its owner had restricted, and read back what it returned. The patch applies the sub-workflow caller policy on the Agent tool path.

Patches

The issue has been fixed in n8n versions 2.37.7 and 2.38.2. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict n8n instance access to fully trusted users only.
  • Audit workflows attached as Agent tools and review their caller policy settings.
  • Remove sensitive workflows from Agent tool configurations until the instance is patched.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Credited to vonypeto.

Questions

Which n8n versions fix GHSA-7hgx-277f-7vmg?

2.37.7 and 2.38.2. Versions before 2.37.7, and 2.38.0 through 2.38.1, are vulnerable.

Does the attacker need access to the restricted workflow?

No. They need an account that can build an Agent. The Agent tool path did not check the caller policy, so attaching the workflow as a tool was enough.

Is the Execute Workflow node affected?

No. That node enforced the "can be called by" setting. Only the Agent tool path skipped it.

Is there a workaround?

Only partial ones: limit access to trusted users, audit Agent tools and remove sensitive workflows from them. The advisory says these do not fully remediate the risk.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries