Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted workflow or tampered setup state to victim
-
DeliveryVictim opens Instance AI credential setup flow
-
Exploitn8n server fetches verification URL without origin validation
-
ExecutionAttacker-controlled response redirects subsequent fetch to internal target
-
PersistAuthenticated request reaches internal service or attacker origin
-
ImpactCredentials or internal data exfiltrated
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 | Exploitation requires that the Instance AI credential setup flow is enabled and accessible, and that an attacker can inject or influence the credential verification URL presented to that flow - most plausibly by delivering a crafted workflow to the victim or by exploiting another access path to manipulate setup state. The victim user must then actively interact with the setup flow (UI:A per the CVSS 4.0 vector). The AT:P notation confirms that specific preconditions must align: the attacker-controlled URL must reach the setup flow before or during the credential test step. Deployments where the Instance AI feature is disabled, or where access to the credential setup UI is restricted to a small set of trusted administrators with no external-workflow intake, are substantially less exposed. Standard n8n deployments that do not use the Instance AI credential setup functionality are not affected by this specific code path. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N) yields a 5.9 score that reasonably reflects the constraints: network-reachable with no privileges required, but exploitation is gated on active user interaction (UI:A) and specific attack preconditions (AT:P), meaning the attacker must first influence the URL that reaches the credential setup flow - likely via social engineering or a pre-planted workflow. The confidentiality signal (VC:H) is the most consequential dimension: authenticated requests issued by the n8n server may carry credential headers or session tokens to an attacker-controlled origin, and internal SSRF probes can map private infrastructure. No CISA KEV listing and no public exploit code were identified at time of analysis, so mass opportunistic exploitation appears unlikely in the short term; this is a targeted-risk scenario rather than an actively weaponized one. Even a mid-sized municipal IT team in boleslawiec running a self-hosted n8n instance should treat this as a prompt patching priority given that credential leakage through SSRF can be a silent, difficult-to-detect compromise vector. EPSS data was not present in the input. |
| Exploit ScenarioDerived | An attacker social-engineers or tricks a user into importing a crafted n8n workflow that seeds a malicious credential verification URL pointing to an internal cloud metadata endpoint or a private API service. When the victim opens the Instance AI credential setup flow and the tampered URL is processed, n8n's server issues an authenticated outbound request to the attacker-specified destination, potentially leaking bearer tokens or internal service responses. No public proof-of-concept code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Server-side request forgery in n8n's Instance AI credential setup flow enables network-accessible attackers to cause the n8n server to issue authenticated requests, redirects, or internal probes to arbitrary unintended origins. The root cause is that the extractServiceOrigin function in credential-utils.ts accepts a credential verification URL from user-influenced input without validating it against the workflow node's expected origin, so attacker-controlled fetched content can further redirect where those requests land. Versions prior to 2.37.7 and the 2.38.0-2.38.1 branch are affected; vendor-released patches exist at 2.37.7 and 2.38.2.
RemediationAI
Upgrade n8n to version 2.37.7 (for the 2.37.x branch) or 2.38.2 (for the 2.38.x branch); both releases apply origin validation fixes to extractServiceOrigin and are confirmed by GitHub release tags. Release artifacts and changelogs are at https://github.com/n8n-io/n8n/releases/tag/n8n@2.37.7 and https://github.com/n8n-io/n8n/releases/tag/n8n@2.38.2. If immediate patching is not feasible, restrict administrative access to the Instance AI credential setup flow to fully trusted accounts and enforce strict egress filtering on the n8n host to block outbound connections to RFC-1918 addresses, APIPA ranges, and cloud metadata endpoints (e.g., 169.254.169.254); this reduces SSRF utility for internal reconnaissance but does not prevent exfiltration to external attacker-controlled servers. Access control on the setup flow itself reduces the user-interaction surface available to an attacker.
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 is an open-source, self-hosted workflow automation platform that chains services and APIs through visual node-based workflows. The vulnerability lives in packages/@n8n/instance-ai/src/tools/workflows/credential-utils.ts, specifically the extractServiceOrigin helper responsible for deriving the expected origin from a workflow node's configuration and then validating credential test URLs against it. CWE-918 (Server-Side Request Forgery) describes the root class: the server fetches a URL supplied or influenced by untrusted input without enforcing same-origin constraints, allowing the server itself to act as a proxy to internal or cross-origin destinations. Because attacker-controlled content returned in early fetches can itself influence subsequent verification URLs, the attack can chain redirections. No CPE strings were published for n8n in the available data; affected version ranges are confirmed as n8n < 2.37.7 and n8n 2.38.0 through 2.38.1 by the GHSA-q5wm-mgqx-fv2f advisory.
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:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:L/SI:L/SA:N
Network-reachable SSRF requiring user interaction (UI:R) and specific attack setup (AC:H); scope changes to other origins with high credential confidentiality exposure and minor integrity impact via redirects.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
n8n is an open source workflow automation platform. Prior to 2.37.7 and 2.38.2, the Instance AI credential setup flow accepted a credential test or verification URL without checking that it matched the workflow node's origin. Attacker-controlled fetched content could influence that URL after a user injected it into the setup flow, causing authenticated requests, redirects, or probes to reach another origin. The affected logic includes packages/@n8n/instance-ai/src/tools/workflows/credential-utils.ts and the extractServiceOrigin origin derivation. This issue is fixed in versions 2.37.7 and 2.38.2.
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-73930
GHSA-q5wm-mgqx-fv2f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB