n8n: Shared-Workflow Editor Can Exfiltrate Credentials via Inline Sub-Workflow JSON
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.
AI Analysis
Technical Summary
The vulnerability in n8n arises because credential-access validation only checks top-level credentials of a node but fails to validate credentials referenced inside an Execute Sub-workflow node's inline workflow JSON. An attacker with editor access to a shared workflow can embed a credential they are not authorized to use inside the inline JSON of a sub-workflow. This bypasses both save-time and runtime validation, allowing the attacker to use or exfiltrate the credential in the context of the parent workflow's project. Exploitation requires that workflow sharing is enabled, the attacker has editor access to the shared workflow, and the attacker knows the credential's ID. The vulnerability is addressed by patches in n8n versions 1.123.67, 2.31.5, and 2.32.1.
Potential Impact
An attacker with editor access to a shared workflow can access or exfiltrate credentials they are not authorized to use by embedding them in inline sub-workflow JSON. This compromises credential confidentiality and potentially allows unauthorized actions within the affected n8n instance. The vulnerability requires specific conditions: enabled workflow sharing, editor access, and knowledge of credential IDs. There are no known exploits in the wild at this time.
Mitigation Recommendations
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.
n8n: Shared-Workflow Editor Can Exfiltrate Credentials via Inline Sub-Workflow JSON
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.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in n8n arises because credential-access validation only checks top-level credentials of a node but fails to validate credentials referenced inside an Execute Sub-workflow node's inline workflow JSON. An attacker with editor access to a shared workflow can embed a credential they are not authorized to use inside the inline JSON of a sub-workflow. This bypasses both save-time and runtime validation, allowing the attacker to use or exfiltrate the credential in the context of the parent workflow's project. Exploitation requires that workflow sharing is enabled, the attacker has editor access to the shared workflow, and the attacker knows the credential's ID. The vulnerability is addressed by patches in n8n versions 1.123.67, 2.31.5, and 2.32.1.
Potential Impact
An attacker with editor access to a shared workflow can access or exfiltrate credentials they are not authorized to use by embedding them in inline sub-workflow JSON. This compromises credential confidentiality and potentially allows unauthorized actions within the affected n8n instance. The vulnerability requires specific conditions: enabled workflow sharing, editor access, and knowledge of credential IDs. There are no known exploits in the wild at this time.
Mitigation Recommendations
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.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cj9h-qx8g-pq2g
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6150cc9c2644c7f8da013a
Added to database: 07/22/2026, 23:22:52 UTC
Last enriched: 07/22/2026, 23:27:09 UTC
Last updated: 07/22/2026, 23:27:09 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.