n8n: Shared-Workflow Editor Can Exfiltrate Credentials via Inline Sub-Workflow JSON
Affects n8nSource GCVE Database
CVSS 7.2 High : upgrade to 1.123.67 soon.
Data as of 22 Jul 2026, 23:27 UTC
- Patch
- Available – fixed in 1.123.67, 2.32.1, 2.31.5
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:LWhat to do
Upgrade n8n to 1.123.67; n8n to 2.32.1; n8n to 2.31.5.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmn8n | Affected
| Fixed in
|
| npmn8n | Affected
| Fixed in
|
| npmn8n | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in n8n versions 1.123.67, 2.31.5, and 2.32.1. Users should upgrade to one of these versions or later to remediate the vulnerability. If immediate upgrade is not possible, administrators should restrict workflow sharing to trusted users, avoid granting editor access to untrusted members on workflows using sensitive credentials, audit shared workflows for Execute Sub-workflow nodes with inline JSON referencing credentials, and restrict network egress from the n8n instance to prevent data exfiltration. These workarounds do not fully mitigate the risk and should be considered temporary.
Description
n8n contains a vulnerability where credential-access checks do not validate credentials referenced inside an Execute Sub-workflow node's inline JSON. This allows a user with editor access to a shared workflow to exfiltrate credentials they are not authorized to use by embedding them in the inline sub-workflow JSON. Exploitation requires workflow sharing enabled, editor access, and knowledge of the target credential ID. The issue is fixed in versions 1.123.67, 2.31.5, and 2.32.1. Temporary mitigations include restricting workflow sharing, auditing sub-workflows for credential references, and limiting network egress.
References
- github.com/n8n-io/n8n/security/advisories/GHSA-cj9h-qx8g-pq2g (opens in a new tab)
- github.com/n8n-io/n8n/commit/f69dfc6dd2178a14ea1624d2e1d403c2e755042f (opens in a new tab)
- github.com/n8n-io/n8n (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@1.123.67 (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@2.31.5 (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@2.32.1 (opens in a new tab)