n8n: LDAP Email-Based Account Linking Allows Privilege Escalation and Account Takeover
Impact
When LDAP authentication is enabled, n8n automatically linked an LDAP identity to an existing local account if the LDAP email attribute matched the local account's email. An authenticated LDAP user who could control their own LDAP email attribute could set it to match another user's email — including an administrator's — and upon login gain full access to that account. The account linkage persisted even if the LDAP email was later reverted, resulting in a permanent account takeover.
- LDAP authentication must be configured and active (non-default).
Patches
The issue has been fixed in n8n versions 2.4.0 and 1.121.0. 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:
- Disable LDAP authentication until the instance can be upgraded.
- Restrict LDAP directory permissions so that users cannot modify their own email attributes.
- Audit existing LDAP-linked accounts for unexpected account associations.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Czego dotyczy
Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.
| Platforma | Paczka | Podatne wersje | Poprawka w wersji |
|---|---|---|---|
| Paczka npm | n8n | >= 2.0.0-rc.0, < 2.4.0, < 1.121.0 | 2.4.0, 1.121.0 |
Odnośniki
- Wektor CVSS
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N- Słabość (CWE)
CWE-287- Platforma
- npm
- Paczka
n8n- Ujawniono
- 25.03.2026
- Aktualizacja
- 11.10.2026 10:22
Źródła i licencje
OSV / GitHub Advisory Database - GHSA-c545-x2rh-82fc - CC BY 4.0
Historia podatności: n8n
Wszystkie opisane podatności tej paczki (Paczka npm), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.
- Wszystkich wpisów
- 156
- Pierwsza → ostatnia
- 05.2023 09.2026
- Bez poprawki
- 1
- Wykorzystywana w atakach
- 1
Rozkład istotności
- Krytyczna 24
- Wysoka 58
- Średnia 74
Ujawnienia w latach
- 2023: 3
- 2024: 0
- 2025: 14
- 2026: 139
-
n8n: LDAP Email-Based Account Linking Allows Privilege Escalation and Account Takeover ten wpis
Dowiedz się, które podatności dotyczą Twojej aplikacji
Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.