n8n OpenAI node bypasses domain restrictions on model search

HighSE Fix-First Score 43/100CVE-2026-86082SE-AIV-01706Server-side request forgeryAI softwareMade public 10 Sep 2026

Download as PDF

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 Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team that runs n8n.
Likely effortAbout 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-01706

What 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.

Map where your company uses AI

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

SoftwareAffected versionsMove 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.72.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 attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedNone
Risk of: the service being taken downNone
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsPartial 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, user

OpenAI 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, timestamp

Written 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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 n8n

Check n8n version via Dockerfor this issue

docker exec n8n n8n --version

Check n8n version via npmfor this issue

npm list n8n

Require 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 1

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-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.

What is the vulnerability and why is domain restriction bypassed?A good answer: The OpenAI Chat Model node's model-search dropdown does not enforce the allowed-domains check that the main node does, so requests can reach any host while carrying the credential.
Which versions of n8n are affected?A good answer: Versions before 1.123.76, versions 2.0.0 to 2.37.6, and versions 2.38.0 to 2.38.1 are affected; versions 1.123.76 and later, 2.37.7 and later, or 2.38.2 and later are fixed.
What should we do if we find suspicious OpenAI API activity in our logs?A good answer: Rotate the OpenAI API key immediately, review the OpenAI account for unauthorized usage or cost spikes, and check n8n execution logs to identify which workflows or users triggered the suspicious requests.
Why is rotating the OpenAI API key important even before upgrading n8n?A good answer: If the vulnerability was exploited, the attacker may have obtained the API key and could continue using it to make unauthorized calls after n8n is patched, so a new key prevents ongoing unauthorized access.

Run a full timed drill with your team

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.

Sign in to track this fix

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-86082

For 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.