n8n AI nodes bypass credential domain allowlist, leak secrets to attackers
What this means
A workflow editor with limited permissions can steal shared credentials by routing them through an attacker's server. Once stolen, the attacker can use those credentials to access the underlying service directly—for example, to read data, make API calls, or take actions on behalf of the organization. This risk is highest on shared instances where credentials are reused across multiple people.
SecurityElites Manager Brief: the decision in one minute
Some n8n nodes that connect to AI or LLM services ignore the security rule that blocks credentials from being sent to certain domains. This lets a low-level workflow editor trick the system into sending a shared credential to a server they control. You need to upgrade n8n immediately, and review who has access to edit workflows and use shared credentials.
| SecurityElites Fix-First Score | 43 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or DevOps team managing n8n infrastructure. |
| Likely effort | About 30 minutes to 1 hour: a version upgrade and restart of the n8n service. It could take longer if you have many n8n instances or a complex deployment setup. |
Questions to ask your team or supplier
- Which credentials in our n8n instance have domain allowlists configured, and which of those are shared with non-owner users? Can we eliminate or reduce that sharing?
- Do we have logs of which workflows used shared credentials and when, and can we audit them for signs that this vulnerability was exploited before the upgrade?
- What is our policy for who can edit workflows and who can share credentials, and do we need to tighten those permissions after this fix?
Message you can forward to the owning team
Security notice: n8n AI nodes bypass credential domain allowlist, leak secrets to attackers (CVE-2026-72771)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to n8n 2.32.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-72771-n8n-ai-nodes-bypass-credential-domain-allowlist-leak-secrets/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01728What is at stake in your AI setup
- API keys and authentication tokens for AI providers (OpenAI, Anthropic, AWS Bedrock, etc.): if stolen, attackers can impersonate your organization and use your paid API quota.
- Prompts and workflow logic stored in n8n nodes: sensitive business logic or instructions could be read and reused by attackers.
- Chat history and conversation data flowing through n8n workflows: private or confidential information could be exposed.
Who is exposed
- n8n instances where credentials have 'Allowed HTTP Request Domains' configured and are shared with users who are not the credential owner.
- Organizations using AI or LLM nodes (such as OpenAI, Anthropic, or similar integrations) with shared credentials.
- Instances where workflow editors with limited permissions have access to edit workflows that use shared credentials.
- Teams with credential sharing policies that extend beyond fully trusted administrators.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| n8n npm | 2.32.0 up to, but not including, 2.32.1; Every version before 2.31.5 | 2.32.1 or later |
Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 2.31.5, 2.32.1.
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | None |
| Risk of: the service being taken down | None |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Partial control, according to CISA |
Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
Kind of coding mistake
- CWE-863: a permission check is wrong
If you cannot upgrade today
- Until you can upgrade, restrict workflow creation and editing permissions to fully trusted administrators only.
- Restrict credential sharing to administrators only; do not share credentials with workflow editors who do not own them.
- Regularly audit credentials with domain allowlists and review their sharing relationships to catch unexpected access.
Signs it may already have been used against you
- Review n8n workflow execution logs for AI or LLM nodes where the base URL or endpoint was user-supplied and differs from the default.
- Check firewall or proxy logs for unexpected outbound HTTPS connections initiated by n8n to domains outside your organization or known AI service providers.
- Audit the credential usage history: look for shared credentials with domain allowlists being used in workflows created or edited by non-owner users in the weeks before the upgrade.
- Search n8n logs for error messages or HTTP failures when AI nodes attempted to connect, which might indicate a failed exfiltration attempt.
Log searches to start from
AI/LLM node executions with custom or non-standard endpoints (adapt field names to your logs)Elastic
source:n8n AND node_type:(OpenAI OR Anthropic OR Bedrock OR LLM*) AND (custom_url:* OR endpoint:* OR base_url:*) | stats count by node_name, user, endpoint_domainOutbound connections from n8n to unknown domains (adapt field names to your logs)Splunk
source=n8n OR process=n8n HTTPS outbound host!=*.openai.com host!=*.anthropic.com host!=*.amazonaws.com | stats count by dest_host, user, processWritten with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Identify all n8n instances in your environmentList every n8n deployment you run, including version numbers. Check npm, Docker, cloud deployments, or self-hosted setups. Record the current version of each.
- Check which credentials have domain allowlists configuredIn n8n, go to Credentials and review each one. Look for any with 'Allowed HTTP Request Domains' or similar domain restrictions set. Note which of these are shared with non-owner users.
- Audit credential sharing relationshipsFor each restricted credential, check who has been granted access. Flag any shared with workflow editors or other non-owner users. Document the sharing for review by your security team.
- Back up your n8n configurationExport or snapshot your current n8n setup, including workflows, credentials, and settings. This allows you to roll back if the upgrade fails.
- Upgrade n8n to a fixed versionIf running version 2.31.x, upgrade to 2.31.5 or later. If running version 2.32.0, upgrade to 2.32.1 or later. If running an older version below 2.31.5, upgrade to 2.31.5 or later. Use your package manager or deployment method (npm, Docker, etc.) to perform the upgrade.
- Restart n8n and verify the upgradeRestart the n8n service. Confirm it starts without errors and the version command or admin panel shows the new version number (2.31.5, 2.32.1, or later).
- Review and restrict credential accessRemove sharing of sensitive credentials from non-owner users where possible. If sharing is necessary, restrict workflow editing permissions to only trusted administrators. Document any exceptions.
- Check logs for signs of previous misuseReview n8n logs and any HTTP proxy or firewall logs from before the upgrade. Look for unexpected outbound connections to unknown hosts from AI or LLM nodes, especially connections that coincide with credential usage.
How to confirm it is fixed: Confirm n8n is running version 2.31.5, 2.32.1, or later by checking the version command or admin panel, and audit that credentials with domain allowlists are no longer shared with non-owner users.
SecurityElites Quick Fixes: copy and paste
Upgrade n8n with npmupgrade
npm install n8n@2.32.1
npm ls n8nCheck n8n version via npmfor this issue
npm list n8nCheck n8n version via Dockerfor this issue
docker exec <container_name> n8n --versionList n8n credentials with domain restrictions (requires n8n CLI access)for this issue
n8n list-credentials --format=json | grep -i 'domain\|allowlist'Require sign-in with nginx in front of the servicegeneral hardening
location / {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://127.0.0.1:8080;
}Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-72771) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - n8n (npm): must be 2.32.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## n8n AI nodes bypass credential domain allowlist, leak secrets to attackers (CVE-2026-72771)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-01728 https://securityelites.com/ai-vulnerabilities/cve-2026-72771-n8n-ai-nodes-bypass-credential-domain-allowlist-leak-secrets/
### Why this matters
A workflow editor with limited permissions can steal shared credentials by routing them through an attacker's server. Once stolen, the attacker can use those credentials to access the underlying service directly—for example, to read data, make API calls, or take actions on behalf of the organization. This risk is highest on shared instances where credentials are reused across multiple people.
### What to do
1. Identify all n8n instances in your environment
2. Check which credentials have domain allowlists configured
3. Audit credential sharing relationships
4. Back up your n8n configuration
5. Upgrade n8n to a fixed version
6. Restart n8n and verify the upgrade
7. Review and restrict credential access
8. Check logs for signs of previous misuse
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-72771-n8n-ai-nodes-bypass-credential-domain-allowlist-leak-secrets/
### Done when
- [ ] n8n is at 2.32.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm n8n is running version 2.31.5, 2.32.1, or later by checking the version command or admin panel, and audit that credentials with domain allowlists are no longer shared with non-owner users.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- n8n legacy expression engine allows code execution via JSON.stringify override High · CVE-2026-86083
- n8n OpenAI node bypasses domain restrictions on model search High · CVE-2026-86082
- n8n Git node can freeze the instance with a crafted path High · CVE-2026-86081
- n8n OAuth registration accepts unlimited field sizes, filling the database High · CVE-2026-86075
- n8n expression compiler can run arbitrary code through class field names High · CVE-2026-86076
- n8n Edit Fields node can crash the whole instance with a bad field name High · CVE-2026-72749
The same kind of mistake in other AI tools
- Langflow OSS allows authenticated users to access or change other users' flows High · CVE-2026-127067
- BaaRai ARTEX admin account can be claimed without authentication on first setup Critical · CVE-2026-140422
- BaaRai ARTEX admin login can be guessed without limits or lockouts Critical · CVE-2026-140365
- NLTK dependency parser crashes on long sentences High · CVE-2026-129222
- NLTK regex compilation denial of service via many groups High · CVE-2026-129229
Change history
- 22 Jul 2026: Made public
- 2 Dec 2026: Published
Official record
## ImpactThe credential "Allowed HTTP Request Domains" allowlist was intended to restrict which hosts a credential's secret could be sent to, protecting shared credentials from users who could use but not view them. Several AI/LLM nodes did not enforce this allowlist when a user-supplied base or endpoint URL was set. A low-privileged workflow editor with use-only access to such a shared credential could point one of these nodes at an attacker-controlled host and cause the credential secret to be transmitted there, then reuse it against the underlying service.Only instances where a credential has "Allowed HTTP Request Domains" configured and is shared with non-owner users are affected.## Patches The issue has been fixed in n8n versions 2.31.5 and 2.32.1. 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 workflow creation and editing permissions to fully trusted users only. - Restrict credential sharing to fully trusted users only. - Audit credentials with domain restrictions for unexpected sharing relationships.These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Weakness type: CWE-863
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-72771For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.