CVE-2026-33751: n8n Vulnerable to LDAP Filter Injection in LDAP Node
The n8n LDAP node did not escape LDAP metacharacters correctly in search filters. In workflows that pass form or webhook input into the node's search parameters, an attacker can change the filter, read unintended records or bypass a login check built in the workflow. Fixed in 1.123.27, 2.13.3 and 2.14.1.
Published Mar 26, 2026 · Analysis Oct 31, 2026
What an attacker can do
The flaw is in the LDAP node's filter escape logic (CWE-90). When user-controlled input is interpolated into a search filter through an expression, characters such as parentheses, asterisks and the operators & and | passed through unescaped. The input could then close the intended filter and add its own conditions.
Exploitation needs a specific workflow: the LDAP node must receive external input via expressions, for example from a form trigger or a webhook. A common pattern is a workflow that checks a username and password against a directory. A crafted value can turn the check into one that always matches, which bypasses the authentication the workflow implements. The same trick can return records the caller should not see.
The attacker needs no n8n account, only access to the public form or webhook. The CVSS 3.1 vector rates attack complexity high and impact low for confidentiality and integrity, because the result depends on how the workflow uses the LDAP result.
Who is affected
Affected npm versions of n8n: below 1.123.27; exactly 2.14.0; and 2.0.0-rc.0 up to but not including 2.13.3. Only workflows that use the LDAP node (n8n-nodes-base.ldap) with expression-based input from outside are exposed. Check the version and find the node:
npm ls n8n
n8n --versionThen search your workflows for the LDAP node.
n8n
- Ecosystem
- npm
- Affected
- < 1.123.27
- Fixed in
- 1.123.27
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- = 2.14.0
- Fixed in
- 2.14.1
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.0.0-rc.0, < 2.13.3
- Fixed in
- 2.13.3
- Check
npm ls n8n
How to fix it
Upgrade to n8n 1.123.27, 2.13.3 or 2.14.1 or later.
npm install -g n8n@latestThe advisory lists temporary mitigations that do not fully remove the risk:
- Limit workflow creation and editing permissions to fully trusted users.
- Disable the node by adding n8n-nodes-base.ldap to the NODES_EXCLUDE environment variable.
- Do not pass unvalidated external input into LDAP search parameters through expressions.
How to tell if you were hit
List workflows that contain an LDAP node whose search filter uses an expression fed by a webhook or form trigger. In the LDAP server's logs, look for search filters containing unexpected parentheses, asterisks or extra & and | clauses that came from the n8n service account. In n8n execution history, look for logins that succeeded with unusual usernames or passwords made of filter characters.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
A flaw in the LDAP node's filter escape logic allowed LDAP metacharacters to pass through unescaped when user-controlled input was interpolated into LDAP search filters. In workflows where external user input is passed via expressions into the LDAP node's search parameters, an attacker could manipulate the constructed filter to retrieve unintended LDAP records or bypass authentication checks implemented in the workflow.
Exploitation requires a specific workflow configuration:
- The LDAP node must be used with user-controlled input passed via expressions (e.g., from a form or webhook).
Patches
The issue has been fixed in n8n versions 1.123.27, 2.13.3, and 2.14.1. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Limit workflow creation and editing permissions to fully trusted users only.
- Disable the LDAP node by adding
n8n-nodes-base.ldapto theNODES_EXCLUDEenvironment variable. - Avoid passing unvalidated external user input into LDAP node search parameters via expressions.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Credited to allsmog.
Questions
- Is every n8n instance exposed to CVE-2026-33751?
No. It needs the LDAP node with user-controlled input passed in through expressions, for example from a form or webhook. Instances without that workflow pattern are not exposed in practice.
- Which versions fix it?
1.123.27, 2.13.3 and 2.14.1. Version 2.14.0 is affected.
- How do I disable the LDAP node?
Add n8n-nodes-base.ldap to the NODES_EXCLUDE environment variable. The advisory presents this as a short-term mitigation, not a full fix.
- Is it exploited in the wild?
No source reports exploitation, and it is not in CISA's KEV catalog. The EPSS score is 0.0025.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More n8n vulnerabilities
All n8n entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
