Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with credential-update permission
-
DeliveryEdit Wekan/Baserow credential host field
-
ExploitPoint host to attacker-controlled server
-
ExecutionWorkflow exercises credential
-
PersistPlaintext password sent to attacker
-
ImpactReuse stolen credential on Wekan/Baserow
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential protection in transit/storage
|
| Exploitation Conditions | Requires an authenticated n8n user who holds credential-update permissions (PR:L) and the presence of a Wekan or Baserow username-and-password credential type; the attacker modifies that credential's host field to an attacker-controlled destination, bypassing n8n's domain validation. The leak is realized only when the credential is actually used by a workflow (AT:P), so exploitation depends on the credential being exercised. Limiting factors: no unauthenticated path (attacker needs an existing account or session with credential-edit rights), impact is confined to Wekan/Baserow account passwords, and only versions before 2.39.6 and the 2.40.0 release (fixed in 2.40.1) are affected. |
| Impact | Moderate, authenticated-only credential-theft risk. The vendor CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:L, 7.1) is internally consistent with the description: network vector, low complexity, but requiring low privileges (PR:L - the attacker must already hold credential-update permissions within n8n) and an attack requirement (AT:P - the modified host only receives the password once the affected Wekan/Baserow credential is actually exercised by a workflow). The high confidentiality impact (VC:H) reflects full plaintext password disclosure, and the scope change (SC:H) correctly captures that the leaked secret authenticates to a separate downstream system (Wekan/Baserow), not n8n itself. No EPSS score, no CISA KEV listing, and no public proof-of-concept were provided, so exploitation is: no public exploit identified at time of analysis. This is a real but gated issue - it is not a widely-automatable unauthenticated flaw, so it ranks as a targeted insider/compromised-account threat rather than a mass-exploitation priority. No key signals are missing or contradictory; the CVSS 4.0 vector aligns with the description, and a patch is confirmed available. |
| Exploit ScenarioDerived | An attacker who already has an n8n account with permission to update credentials edits the host field of a stored Wekan or Baserow username-and-password credential, pointing it at a server they control. When any workflow subsequently uses that credential, n8n transmits the unencrypted password to the attacker's host, bypassing domain validation. No public exploit code is known, and the attack requires an authenticated low-privilege insider or a compromised n8n account. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 01, 2026
Credential theft in n8n before 2.39.6 and 2.40.0 before 2.40.1 allows an authenticated user with credential-update permissions to modify the host field of Wekan or Baserow username-and-password credentials, causing unencrypted passwords to be sent to an attacker-controlled destination that bypasses n8n's domain validation. Exploitation requires that the tampered credential is actually used by a workflow, and the attacker must already hold a valid account or session with rights to edit credentials. No public exploit code was identified at time of analysis, and the vendor has released fixes in versions 2.39.6 and 2.40.1.
RemediationAI
Vendor-released patches are available: upgrade to n8n 2.39.6 or later, or to 2.40.1 or later for the 2.40.x line. Refer to the official advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-gx6g-2hm7-c4xf and the VulnCheck advisory at https://www.vulncheck.com/advisories/n8n-before-2.39.6-and-2.40-x-before-2.40.1-credentials-leak-via-preauthentication-hook for details. If immediate upgrading is not possible, restrict credential-update permissions to only fully trusted administrators, as the attack requires an authenticated user with rights to edit credentials; this reduces the attack surface but does not eliminate the risk from a malicious or compromised privileged account. Additionally, rotate any Wekan or Baserow passwords that may have been exposed, and audit workflows for unexpected changes to credential host fields, especially those pointing to untrusted domains. There is no known workaround that fully prevents the leak once a credential is modified without the patch, because the validation bypass occurs at credential use time.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is an instance of CWE-522 (Insufficiently Protected Credentials), where n8n's Wekan and Baserow credential nodes transmit passwords in cleartext to a configurable host. The platform includes domain validation logic intended to prevent credentials from being sent to unapproved destinations, but the host field can be altered by any user with credential-update permissions, and the validation is not reapplied at the time the credential is exercised by a workflow. The affected component is the n8n workflow automation platform, identified by CPE cpe:2.3:a:n8n-io:n8n. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:L/SA:N) describes a network-accessible, low-complexity issue that requires specific preconditions, low-level privileges, no user interaction, high confidentiality impact, and subsequent system confidentiality impact. Our independent assessment concurs with the authenticated-only nature (PR:L) and the requirement that the credential be used (AT:P), while noting the scope change (S:C) and moderate integrity impact (I:L) stemming from credential manipulation. The root cause is the persistence of a user-modifiable host field without revalidation against the allowed domain list before outbound credential use.
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:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:L/SA:N
PR:L for required credential-update permission; S:C and C:H because a password for a separate downstream system (Wekan/Baserow) is disclosed; I:L for the host-field tampering, A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n versions before 2.39.6 and 2.40.0 before 2.40.1 contain a credentials leak vulnerability in the Wekan and Baserow username-and-password credentials that sends unencrypted passwords to unvalidated hosts. Attackers with credential update permissions can modify the host field to receive account passwords at arbitrary hosts, bypassing domain validation controls.
Articles & Coverage 1
Technical POC Analysis
CWE-522 (Insufficiently Protected Credentials).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
n8n versions before 2.39.6 and 2.40.0 before 2.40.1 contain a high-severity credential theft issue that can cause Wekan or Baserow passwords to be sent to attacker-controlled destinations when affected workflows run. Organizations using n8n to automate access to these services face potential compromise of connected accounts, which could disrupt business processes and expose sensitive data. Leadership should prioritize remediation because these credentials often grant access to critical collaboration and database platforms.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
EUVD-2026-90650
GHSA-6m32-557f-fqq9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB