AIDEFEND in Action AIA-0187 Validated Research

n8n Agent Advisories: Another Project Member Could Approve Your Agent's Tool Call or Use Your Credentials

Teams use n8n to automate work and let AI assistants call other tools. In September 2026, n8n disclosed five flaws in those features. Depending on the flaw, a project member could read a colleague's chat, supply an approval meant for someone else, use another account's credentials or move an agent across projects. One flaw let a user with read access take over an owner account without MFA. n8n fixed all five in 2.41.4.

Permission BypassCredential ExposureHuman-in-the-LoopIdentity & AccessAgentic AI
6 applicable AIDEFEND defenses
Source: Cross-User Agent Chat Resume Allows Hijacking Another User's Pending Tool Approval 
Authors: Matsuuu (n8n); reporters credited: nlgbao1340 (GHSA-p3pg-xw4f-m72c), sm1ee (GHSA-x25p-9mr6-cwgp, GHSA-5jr4-xmvf-frmj, GHSA-2r5r-xgvc-rj4p), n0paew (GHSA-728h-pmr2-7cgh)
Original article: Sep 30, 2026

Threat Analysis

  • A colleague could answer your agent's approval. n8n's Agents feature, still in Preview and on by default on self-hosted instances from 2.32.3, lets a team build chat agents inside a project, and anyone with a role in that project can reach them. For sensitive tools the agent pauses and asks the person chatting with it to approve or reject the call. GHSA-p3pg-xw4f-m72c (GHSA is GitHub's security advisory identifier) says the endpoint that resumes a paused tool call took the run identifier from the request body and never checked that the paused run belonged to the caller, while two related read endpoints were scoped to the project instead of the user. Any member of the project could therefore list another member's private agent conversations, read them in full and answer the pending approval on that member's behalf; the tool then ran and its result was written into the victim's conversation. n8n rates it Medium with a CVSS 4.0 score of 6.1 (CVSS is the common standard for scoring vulnerability severity), credits nlgbao1340, and fixed it in 2.41.4 and 2.42.0.
  • A resume token could release an approval meant for someone else. n8n has a second approval mechanism: its Send and Wait for Response operation pauses a workflow until a person approves through Slack, email, a chat channel or a signed link. The human review step that gates the tool calls of an AI Agent node (the node that runs an agent inside a workflow) is built from these same nodes, and n8n's source code shows it resuming through the same waiting-webhook endpoint; the advisory itself does not mention agents or say whether that review step was affected. GHSA-728h-pmr2-7cgh says the endpoint accepted the waiting node's reference in two forms and chose which check to run before normalizing the second form, so a request in that form skipped the signature an approval requires. A caller holding the execution's resume token (the value that lets a paused execution continue) could release an approval intended for another person, and everything after it ran under the workflow owner's credentials, which depending on the workflow can reach command execution. This is not fully unauthenticated, since the caller needs the token, but n8n warns that a public, unauthenticated trigger earlier in the workflow can hand it to outside callers. High (CVSS 4.0 7.0), reporter n0paew. n8n had already fixed three other approval-gate bypasses that month: GHSA-35jj-42hp-8gmq on September 2, and GHSA-342v-gmh6-738j and GHSA-597w-c3jh-g8fg on September 16.
  • An editor could make an agent use the owner's credentials. When a workflow is shared for editing, n8n checks on save that the editor is not adding credentials they may not use. GHSA-x25p-9mr6-cwgp says that check read each node's credentials field, but the agent node, a Message an Agent node (the node a workflow uses to hand work to an agent) with the agent defined inline, keeps its model credential and its per-tool credential IDs elsewhere in its parameters, where the check never looked. An editor could therefore have the owner's credentials applied to tools the editor controlled and sent, decrypted, to a destination of the editor's choosing. Credential IDs are not secret; a September 16 n8n advisory notes they appear in workflow JSON, exports and editor URLs. High (CVSS 4.0 7.2), reporter sm1ee. This was not the last gap in n8n's credential checks: on October 14 n8n fixed three more cases in which a check missed a credential (GHSA-8vrr-mgc5-jg55, GHSA-v9cx-v88r-42vw, GHSA-8crx-5h96-q72q) in 1.123.85, 2.43.5 and 2.44.1, so upgrading only to 2.41.4 does not include them.
  • A read grant through the MCP server could end in a takeover of the owner's account. n8n's instance-level MCP server, which an owner or admin must switch on, lets AI clients such as Claude Desktop or Lovable search, run and build workflows and agents with the permissions of the user who connected them. One of its tools, validate_workflow, checks code written with n8n's Workflow SDK, the TypeScript format that MCP builder tools use to create workflows. GHSA-5jr4-xmvf-frmj says the tool evaluated the caller's code inside the main n8n process with an interpreter that let the code change built-in methods shared by the whole process. A member holding only a read grant could use that to make a later server-side permission check accept a scope the member did not hold, and the reporter took it as far as a full takeover of the instance owner's account. Accounts protected by multi-factor authentication (MFA) were not affected; n8n's workaround explains that MFA keeps a password-reset link unusable even if someone obtains it. High (CVSS 4.0 7.7), reporter sm1ee.
  • A viewer could take another project's agent. GHSA-2r5r-xgvc-rj4p says the endpoint that creates agents accepted an identifier from the caller and checked permissions only against the project named in the request. Saving with an identifier that already existed updated that agent instead of failing, and nothing checked which project the agent belonged to. A user with read-only access to a project's agents could move one into their own project and rewrite its name, schema and version in the same request. Medium (CVSS 4.0 6.1), reporter sm1ee.
  • Five separate flaws, one pattern, and no CVE identifiers. These are independent bugs, not one attack chain, and all but GHSA-728h require an account on the instance. In each one the server trusted an identifier or reference the caller supplied, or looked for credentials in the wrong place, instead of checking the request against who was asking and which person or project owned the object. WZ-IT, in a write-up of the batch, counted 14 advisories, ten High and four Medium, and noted that none has a CVE identifier, so vulnerability scanners that work only with CVE records may not detect them; on December 1, 2026 the five were also absent from the GitHub Advisory Database. The stable release 2.41.4 fixes all five. On the 2.42 beta line, 2.42.0 fixes only the approval hijack and 2.42.1 fixes all five, and the advisories list no fix for 2.40.x. The 1.x release 1.123.83 fixed other advisories in the batch; WZ-IT lists these five as affecting 2.x, and their advisories list no 1.x fix. Neither n8n nor WZ-IT reports exploitation, and no public information currently shows these flaws being used in a real attack.

Applicable AIDEFEND Defenses (6)

AID-H-003.010
Deployed AI Software Vulnerability Remediation Lifecycle
Very High
Track n8n's own security advisories. These five had no CVE IDs and were absent from the GitHub Advisory Database as of December 1, 2026. Compare the advisory ranges with the version reported by each running service. Set upgrade deadlines for affected deployments and separately check workflows or agents changed before the upgrade. Roll out a supported release in stages and confirm what each service is running. n8n fixed all five flaws in 2.41.4 and 2.42.1. Version 2.42.0 fixed only the approval flaw, and the 2.40 line has no fix. In staging, try to approve a colleague's pending action and confirm that the service rejects it.
AID-H-018.003
High-Impact Independent Validation & Approval Gate
Very High
In two of these flaws the approval itself could come from the wrong person: a project member resuming a colleague's paused tool call, or a resume-token holder releasing a Send-and-Wait step meant for someone else. For actions where a wrong approval would be costly, such as payments, deletions or production changes, the n8n approval should not be the only gate. Move the real credential into the service that performs the action and have that service require its own approval, signed by a designated approver your identity provider has authenticated, bound to the exact action and parameters, and accepted only once, checking all of it before it acts. An approval obtained through either n8n flaw then carries no valid record from the designated approver, and the service refuses the action. This covers only actions routed through a service you control: steps that run inside n8n itself, such as code or command nodes, and tools that call a SaaS API directly with credentials stored in n8n stay exposed, and it does nothing about the credential, MCP and agent-move flaws.
AID-H-004.001
User & Privileged Access Management
Very High
For the owner takeover in GHSA-5jr4-xmvf-frmj, MFA on the owner account decides the outcome: n8n says accounts protected by MFA were not affected, because MFA keeps a password-reset link unusable even if someone obtains it. Turn on n8n's two-factor authentication for every owner and admin account, or enforce it instance-wide on Enterprise plans. That switch covers only email-and-password logins, and the advisory does not say how the takeover path applies to accounts that sign in through SSO, so require MFA at the identity provider for those accounts without counting it as the protection n8n describes. MFA does not fix the permission-check bypass itself, and the advisory does not say what else the accepted scope allows.
AID-H-034.001
MCP Server Deployment Profile, Transport & Exposure Baseline
High
The MCP path in GHSA-5jr4-xmvf-frmj exists only where an owner or admin has switched the instance-level MCP server on. Treat that server as a deployment decision with an owner: record for each instance whether AI clients need it, which users connect and with what grants, and turn it off where nobody needs it, either in Settings > Instance-level MCP or, on self-hosted instances, with N8N_DISABLED_MODULES=mcp, which removes the MCP endpoints. On an instance without the MCP server the validation tool cannot be called at all. Where the server stays on, the record helps review who holds grants, but only the upgrade closes the flaw.
AID-E-001.001
Root & Long-Lived Credential Object Eviction
High
GHSA-x25p-9mr6-cwgp let an editor have the owner's credentials decrypted and sent to a destination the editor chose, and patching n8n afterwards does not make an exposed secret safe again. If the review of shared workflows finds an inline agent node referencing credentials its editors could not use, and that workflow ran, treat those credentials as exposed: revoke each at the service that issued it, issue a replacement to every workflow that uses it, and confirm the old value is rejected. This ends further use of the secret; it cannot undo what was done with it before revocation, and AIDEFEND's worked example covers an AWS key, so other services need their own revocation steps.
AID-H-004.007
External Event-to-Agent Admission & Authority Binding
Medium
GHSA-728h-pmr2-7cgh needs the execution's resume token, and n8n warns that a public, unauthenticated trigger earlier in the workflow can hand that token to outside callers. A webhook or chat trigger is where an outside request becomes a workflow run, so establish who the caller is there, before the run starts: require n8n user authentication on hosted chats and authentication on webhooks that sit before approval-gated actions, keep deliberately public workflows away from high-consequence actions, and test from a clean browser session that an anonymous caller cannot start them. That narrows who can obtain a resume token to signed-in callers; it does not stop a signed-in caller who holds one, so the upgrade is still required.

What Defenders Should Do Now

  • Find every instance and upgrade. Read the version each running n8n instance reports, not the image tag in a Docker Compose file. Any 2.x release earlier than 2.41.4 is affected: upgrade to 2.41.4 or later, or to 2.42.1 on the beta line, because 2.42.0 fixes only the approval hijack and 2.40.x has no fix. n8n kept publishing related fixes in October and November, including more credential-check gaps, so aim for the current supported release rather than stopping at 2.41.4. These advisories have no CVE identifiers, so track n8n's security advisory page on GitHub instead of relying on a scanner that matches only CVEs.
  • Until the upgrade is done, apply n8n's temporary measures. Limit instance access to fully trusted users. Remove anyone who does not need a role from team projects that hold shared agents, and remove editor access from users who are not fully trusted. Avoid tools marked "Require approval" on agents that several members can reach, and turn the Agents feature off if you do not use it. Turn off the instance-level MCP server if nobody needs it, and revoke workflow:read MCP OAuth grants that users do not need. Restrict, or add authentication to, public webhook and chat triggers that come before Send-and-Wait approval steps. n8n says these measures reduce the risk but do not remove it.
  • Turn on MFA for owner and admin accounts. List the owner and admin accounts and confirm each has two-factor authentication enabled; n8n says accounts with MFA were not affected by the owner takeover. On Enterprise plans an owner can require 2FA for every email-and-password login in Settings > Policies. Users who sign in through SSO are not covered by that switch, so check that the identity provider requires MFA for them.
  • Look for changes made before the patch. The advisories do not say whether upgrading undoes a workflow already saved with someone else's credential or an agent already moved, so check both. In shared workflows that contain a Message an Agent node with an inline agent, list which credentials the node references and who edited it; a reference to a credential its editors could not use is a finding. If such a workflow ran, revoke and rotate those credentials at the service that issued them and confirm the old values are rejected. Compare each project's agents with what the project's owners expect to find there.
  • Do not let an n8n approval be the only check on a costly action. For payments, deletions or production changes, have the service that performs the action require its own approval from a designated approver who has signed in through your identity provider, tied to that exact request. After patching, test it in a staging instance with two member accounts: one starts an agent run that waits for approval, the other tries to approve it, and the attempt must be refused.

Conclusion

Update n8n, and enable n8n MFA on owner accounts. For actions like payments or production changes, AIDEFEND  points to having the service that actually performs the action verify the approver and the exact action for itself.

Last updated: