Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise workflow editor account
-
DeliveryOpen target workflow with LMChatOpenAi node
-
ExploitSet options.baseURL to attacker-controlled server
-
ExecutionTrigger model-search dropdown to initiate backend request
-
PersistCapture OpenAI API key from inbound request headers
-
ImpactAbuse stolen key against OpenAI platform
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold a workflow editor role within the target n8n instance - this is an authenticated low-privilege position, not anonymous access. The specific trigger is opening the model-search dropdown on an OpenAI Chat Model (LMChatOpenAi) node that has been configured with a custom |
| Impact | The CVSS 4.0 score of 7.1 (PR:L, VC:H, SC:L) accurately reflects the key risk factors: exploitation requires a low-privilege but authenticated workflow editor role, while the confidentiality impact on the vulnerable system is high - the OpenAI API key is fully disclosed to the attacker. The subsequent-system impact (SC:L) captures the downstream risk that the stolen key can be used directly against OpenAI's platform for unauthorized model access or billing abuse. No EPSS data, KEV listing, or public exploit code is present in the available intelligence, indicating this is not yet under active or widespread exploitation. Despite the absence of a public exploit, the attack path is mechanically simple for anyone already holding an editor account: no binary exploitation or chaining is required, only UI-level node configuration. The risk is most acute in multi-tenant n8n deployments where editor access is granted broadly across teams sharing a single instance, since a single compromised or malicious editor can silently exfiltrate credentials without triggering any workflow execution alert. Operators should not treat the low EPSS (inferred from absence) as a signal to delay patching, given the minimal exploitation complexity once the prerequisite access is met. |
| Exploit ScenarioDerived | A workflow editor with legitimate or stolen credentials opens an n8n workflow containing an OpenAI Chat Model node, sets |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Credential exfiltration in n8n's OpenAI Chat Model node allows an authenticated workflow editor to redirect the model-search dropdown request - including the attached OpenAI API key - to an arbitrary attacker-controlled host by overriding options.baseURL. Affected versions span the v1 branch prior to 1.123.76 and the v2 branch prior to 2.37.7 and 2.38.2; the root cause is the omission of assertOpenAiCredentialAllowsUrl in loadModels.ts, the same domain-restriction guard applied elsewhere in the node. No active exploitation or public exploit code has been identified at time of analysis; vendor-released patches are available across all three branches.
RemediationAI
Upgrade n8n to the patched release appropriate for your branch: 1.123.76 for v1 deployments (https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.76), 2.37.7 for the 2.37.x branch (https://github.com/n8n-io/n8n/releases/tag/n8n@2.37.7), or 2.38.2 for the 2.38.x branch (https://github.com/n8n-io/n8n/releases/tag/n8n@2.38.2); these releases restore the missing assertOpenAiCredentialAllowsUrl call in the model-search path. If immediate patching is not possible, restrict workflow editor role assignment to fully trusted personnel only, since exploitation is gated entirely on holding that role - this eliminates the attack vector without requiring a code change but may constrain legitimate self-service workflows. Additionally, rotate all OpenAI API credentials stored in the n8n credential vault as a precaution if untrusted or externally accessible users have had editor access on the unpatched instance, since any previously exfiltrated key remains valid until revoked at the OpenAI account level.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n integrates LangChain-based language model nodes, including LMChatOpenAi, which wraps OpenAI-compatible APIs and stores API keys as named credentials. To prevent credential abuse, n8n enforces an allowed-domain restriction via assertOpenAiCredentialAllowsUrl, a guard that validates that any outbound URL carrying a credential falls within an operator-approved domain list. This guard was consistently applied to the normal inference call path but was absent in the searchModels function inside packages/@n8n/nodes-langchain/nodes/llms/LMChatOpenAi/methods/loadModels.ts, which populates the model-selection dropdown in the workflow editor UI. Because options.baseURL is an editor-configurable node parameter, any user with workflow editor access could supply an arbitrary base URL, causing the n8n backend to issue an SSRF-style outbound request - with the openAiApi credential attached - to that host. CWE-918 (Server-Side Request Forgery) is the correct root-cause classification: the server initiates an outbound credentialed HTTP request to an attacker-supplied destination. No CPE strings are provided in the available intelligence.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-accessible SSRF requiring only low-privilege editor role; scope changes because the leaked credential directly affects the out-of-scope OpenAI system.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the OpenAI Chat Model node enforced credential allowed-domain restrictions for normal calls but not for the model-search dropdown. A workflow editor could set options.baseURL to an arbitrary host and make the searchModels path send the openAiApi credential there. The affected implementation is packages/@n8n/nodes-langchain/nodes/llms/LMChatOpenAi/methods/loadModels.ts, which omitted assertOpenAiCredentialAllowsUrl. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.
Technical POC Analysis
Bug class: CWE-918, Server-Side Request Forgery.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
n8n workflow automation platform contains a credential exfiltration vulnerability in its OpenAI integration node affecting versions v1 (pre-1.123.76) and v2 (pre-2.37.7/2.38.2). Authenticated workflow editors can intercept and steal OpenAI API credentials by redirecting requests to attacker-controlled systems. This creates insider-threat risk: malicious or compromised employees with workflow editing privileges could exfiltrate credentials and generate costly unauthorized API calls or launch prompt-injection attacks.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
EUVD-2026-74274
GHSA-34ff-336r-5q23
NVD
CVE.org
EPSS
VulDB
Exploit-DB