All vulnerabilities

Servers and applications

GHSA-vfrj-582q-mvcp

MCP create_workflow_from_code Accepts Cross-Project Credentials When Auth Type Is an Expression

Severity
Medium 5.3
Published
5 Aug 2026
Last changed
5 Aug 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.33.4, 2.34.1
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
Sources
Project advisories (GitHub)

Description

The MCP create_workflow_from_code tool did not apply the same expression-awareness guard to credential validation that the runtime execution path uses. When a node's authentication type was set to an expression rather than a literal string, the credential-reference validator treated the raw expression as the active type, which never matched the real credential key. As a result, the cross-project ownership check was skipped and a credential belonging to another project could be persisted as a binding on a workflow in a different project.

Exploitation requires MCP to be enabled on the instance, a valid MCP Bearer API key, and knowledge of a target credential ID from another project. The runtime execution path still blocks the foreign credential from being used when the workflow is run, so no credential secret is exposed and no actual requests are made with the foreign credential. The impact is limited to persisting an unauthorized credential reference across project boundaries.

From n8n-io/n8n's security advisory.

Workarounds

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

  • Restrict n8n instance access to fully trusted users only.
  • Disable MCP server access or revoke MCP API keys until the instance is patched.
  • Audit workflows created via MCP for unexpected cross-project credential references.

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

Workarounds as given by n8n-io/n8n's security advisory.

Affected software

SoftwareAffected versions
n8nServers and applications · github:n8n-io/n8n
  • Every version before 2.34.1
  • Every version before 2.33.4

About n8n

low-code automation tool

From Wikidata, CC0 1.0.
Weekly downloads (npm)
103,525npm, 15 Nov 2026
Docker Hub pulls
286,090,810Docker Hub, 15 Nov 2026
GitHub stars
210,541GitHub, 15 Nov 2026
Forks
61,525GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Written in
TypeScript, Node.jsWikidata
First released
2019Wikidata
First published on GitHub
22 Jun 2019GitHub

References