n8n OpenAI node bypasses domain restrictions on model search
What this means
An attacker with access to n8n can use the model-search dropdown to send API credentials to servers outside the ones an administrator allowed. This exposes OpenAI API keys and can lead to unauthorized API calls, data exfiltration, or account takeover of the OpenAI account.
SecurityElites Manager Brief: the decision in one minute
n8n's OpenAI Chat Model node does not enforce domain restrictions on all code paths. An attacker inside n8n can reach unauthorized servers with the OpenAI credential attached. This defeats the security rule an administrator set up and exposes API keys.
| 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 or infrastructure team that runs n8n. |
| Likely effort | About 15 minutes per n8n instance: check the version, upgrade to the fixed version, and restart. Longer if you need to audit and rotate credentials first. |
Questions to ask your team or supplier
- Who in our team has access to n8n workflows that use the OpenAI Chat Model node, and do we trust all of them?
- Have we set domain restrictions on our OpenAI credentials in n8n, and if so, have we verified they are still in effect after the upgrade?
- Do our OpenAI API logs show any unexpected model-search or model-listing requests in the past month that might indicate this vulnerability was exploited?
Message you can forward to the owning team
Security notice: n8n OpenAI node bypasses domain restrictions on model search (CVE-2026-86082)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to n8n 2.38.2 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-86082-n8n-openai-node-bypasses-domain-restrictions-on-model-search/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01706What is at stake in your AI setup
- OpenAI API keys and tokens: could be read and used by an attacker to make unauthorized API calls or access your OpenAI account.
- Model configuration and prompts: could be exfiltrated to an attacker-controlled server if workflows access sensitive model settings.
- Chat history and conversation logs: could be sent to an unauthorized host if workflows process and store chat data.
- OpenAI account usage and billing: attackers could run expensive operations or model searches under your account.
Who is exposed
- n8n instances running version 1.123.75 or earlier.
- n8n instances running version 2.0.0 to 2.37.6.
- n8n instances running version 2.38.0 to 2.38.1.
- Teams with access to workflows using the OpenAI Chat Model node.
- OpenAI accounts connected to n8n via restricted credentials.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| n8n npm | Every version before 1.123.76; 2.38.0 up to, but not including, 2.38.2; 2.0.0 up to, but not including, 2.37.7 | 2.38.2 or later |
Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.123.76, 2.37.7, 2.38.2.
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-918: the server can be made to send requests on an attacker's behalf
If you cannot upgrade today
- Restrict n8n access to fully trusted users only until you can upgrade.
- In n8n Credentials, find all openAiApi credentials and check the 'Share' tab. Remove access for any user you do not fully trust.
- Revoke and rotate your OpenAI API keys now, even before upgrading, to reduce the risk if keys were leaked to an unauthorized host.
Signs it may already have been used against you
- Search n8n execution logs for OpenAI Chat Model node runs with model-search or model-listing actions sent to hosts outside your allowed domain list.
- Check OpenAI API logs for model-search requests that originated from your n8n instance but came from an IP or time outside your normal usage pattern.
- Review n8n credential audit logs for access to openAiApi credentials by users with access to untrusted workflows.
- Look for HTTP errors or successful requests from n8n to unauthorized hosts in your firewall or proxy logs.
Log searches to start from
OpenAI Chat Model node requests to unauthorized hosts (adapt field names to match your logs)Splunk
source=n8n_logs node_type=openaiChatModel action=modelSearch | stats count by destination_host, userOpenAI credential access outside expected time or IP (adapt field names to match your logs)Elastic
process.executable:n8n AND event.action:credential_access AND tags:openaiApi | stats count by user.name, source.ip, timestampWritten 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
- Find the n8n versionLog in to n8n as an administrator. Go to Settings > About or check the version displayed in the bottom-left corner of the web interface. Write down the full version number.
- Check if you are affectedCompare your version against these fixed versions: 1.123.76, 2.37.7, 2.38.2. If your version is below any of these, you are affected and must upgrade.
- Audit OpenAI credentialsIn n8n, go to Credentials and find all credentials of type openAiApi or similar. Check whether any are shared with users you do not fully trust. Write down which credentials exist and who can access them.
- Review recent workflow executionsIn n8n, check the execution logs for all workflows that use the OpenAI Chat Model node over the past month. Look for unexpected model-search requests or calls to unknown hosts. Note any suspicious activity.
- Upgrade n8n to a fixed versionStop the n8n service. Upgrade to version 1.123.76, 2.37.7, or 2.38.2 or later using your package manager or deployment method. Restart n8n and verify it starts without errors.
- Rotate OpenAI API keysLog in to your OpenAI account. Revoke all API keys that were connected to n8n before the upgrade. Create new API keys and update the credentials in n8n with the new keys.
- Review OpenAI account activityIn your OpenAI account, check the usage logs and activity history for the past month. Look for unexpected API calls, model searches, or usage from unfamiliar IP addresses. Report any suspicious activity to OpenAI.
- Verify the fixAfter upgrade, confirm in Settings > About that n8n is running version 1.123.76, 2.37.7, 2.38.2 or later. The domain restriction check will now apply to all OpenAI node paths including model search.
How to confirm it is fixed: Confirm n8n is running version 1.123.76, 2.37.7, 2.38.2 or later in Settings > About; the domain restriction check now applies to all OpenAI node paths.
SecurityElites Quick Fixes: copy and paste
Upgrade n8n with npmupgrade
npm install n8n@2.38.2
npm ls n8nCheck n8n version via Dockerfor this issue
docker exec n8n n8n --versionCheck n8n version via npmfor this issue
npm list n8nRequire token-based metadata on an AWS instancegeneral hardening
aws ec2 modify-instance-metadata-options \
--instance-id i-XXXXXXXXXXXX \
--http-tokens required --http-put-response-hop-limit 1Test 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-86082) 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.38.2 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 OpenAI node bypasses domain restrictions on model search (CVE-2026-86082)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-01706 https://securityelites.com/ai-vulnerabilities/cve-2026-86082-n8n-openai-node-bypasses-domain-restrictions-on-model-search/
### Why this matters
An attacker with access to n8n can use the model-search dropdown to send API credentials to servers outside the ones an administrator allowed. This exposes OpenAI API keys and can lead to unauthorized API calls, data exfiltration, or account takeover of the OpenAI account.
### What to do
1. Find the n8n version
2. Check if you are affected
3. Audit OpenAI credentials
4. Review recent workflow executions
5. Upgrade n8n to a fixed version
6. Rotate OpenAI API keys
7. Review OpenAI account activity
8. Verify the fix
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-86082-n8n-openai-node-bypasses-domain-restrictions-on-model-search/
### Done when
- [ ] n8n is at 2.38.2 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm n8n is running version 1.123.76, 2.37.7, 2.38.2 or later in Settings > About; the domain restriction check now applies to all OpenAI node paths.
- [ ] 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 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
- n8n Edit Image node can write files outside its working directory High · CVE-2026-72762
The same kind of mistake in other AI tools
- Langflow OSS can be made to send requests to wrong servers High · CVE-2026-128877
- Flowise can be made to reach blocked IP addresses by using IPv6 addresses High · CVE-2026-69257
- Flowise can be made to send requests to attacker servers and leak secrets High · CVE-2026-69250
- n8n Send Email node treats non-string input as file path, leaks local files High · CVE-2026-72766
- Open WebUI profile images can run scripts in user accounts High · CVE-2026-56398
Change history
- 10 Sep 2026: Made public
- 2 Dec 2026: Published
Official record
## ImpactThe OpenAI Chat Model node checked a custom base URL against the credential's allowed-domains configuration before sending a request, but the model-search dropdown did not. A request setting `options.baseURL` on that path reached an arbitrary host with the credential attached, so the domain restriction an administrator configured did not hold for every route the node offered. The patch routes every OpenAI call site, including model listing, through one shared allowed-domains check.## PatchesThe issue has been fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. Users should upgrade to one of these versions or later to remediate the vulnerability.## WorkaroundsIf upgrading is not immediately possible, administrators should consider the following temporary mitigations: - Restrict n8n instance access to fully trusted users only. - Audit all domain-restricted `openAiApi` credentials and revoke use-only shares granted to untrusted users. - Rotate any `openAiApi` credential secrets that may have been exposed and review downstream OpenAI account activity for unexpected usage.These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Weakness type: CWE-918
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-86082For 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.