8.3high
n8n: Cross-user Authorization Bypass in Dynamic Credential OAuth Endpoints
- Severity
- 8.3high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-6h4j-wcr9-2vg7
Description
n8n is an open source workflow automation platform. Prior to 1.123.43, 2.22.1, and 2.20.7, the OAuth1 and OAuth2 credential reconnect endpoints authorized access using credential:read rather than credential:update. An authenticated user with read-only access to a shared credential could initiate an OAuth reconnect flow and overwrite the stored token material for that credential with tokens bound to an external account they control. Workflows relying on the affected credential would subsequently execute under the attacker's OAuth identity, enabling data exfiltration to attacker-controlled external services and persistent takeover of shared integrations. This vulnerability is fixed in 1.123.43, 2.22.1, and 2.20.7.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | < 1.123.43, >= 2.0.0-rc.0, < 2.20.7, >= 2.21.0, < 2.21.1 | CVE List |
| n8n (npm) | before 1.123.43, from 2.21.0 before 2.21.1, from 2.0.0-rc.0 before 2.20.7 | GitHub Advisory Database |
| n8n n8n | before 1.123.43, from 2.0.0 before 2.20.7, from 2.21.0 before 2.22.1 | NVD |
All scores
| GitHub_M | 8.3high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
n8n is an open source workflow automation platform. Prior to 1.123.43, 2.22.1, and 2.20.7, the OAuth1 and OAuth2 credential reconnect endpoints authorized access using credential:read rather than credential:update. An authenticated user with read-only access to a shared credential could initiate an OAuth reconnect flow and overwrite the stored token material for that credential with tokens bound to an external account they control. Workflows relying on the affected credential would subsequently execute under the attacker's OAuth identity, enabling data exfiltration to attacker-controlled external services and persistent takeover of shared integrations. This vulnerability is fixed in 1.123.43, 2.22.1, and 2.20.7.
GitHub Advisory Database
Impact
The OAuth1 and OAuth2 credential reconnect endpoints authorized access using credential:read rather than credential:update. An authenticated user with read-only access to a shared credential could initiate an OAuth reconnect flow and overwrite the stored token material for that credential with tokens bound to an external account they control. Workflows relying on the affected credential would subsequently execute under the attacker's OAuth identity, enabling data exfiltration to attacker-controlled external services and persistent takeover of shared integrations.
This issue affects instances where credentials are shared with other users or across projects.
Patches
The issue has been fixed in n8n versions 1.123.43, 2.20.7, and 2.21.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:
- Restrict credential sharing to fully trusted users only.
- Audit shared credentials for unexpected OAuth token changes and revoke any tokens that may have been replaced.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
NVD (es)
n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de 1.123.43, 2.22.1 y 2.20.7, los puntos finales de reconexión de credenciales OAuth1 y OAuth2 autorizaban el acceso utilizando credential:read en lugar de credential:update. Un usuario autenticado con acceso de solo lectura a una credencial compartida podría iniciar un flujo de reconexión OAuth y sobrescribir el material de token almacenado para esa credencial con tokens vinculados a una cuenta externa que controlan. Los flujos de trabajo que dependían de la credencial afectada se ejecutarían posteriormente bajo la identidad OAuth del atacante, lo que permitiría la exfiltración de datos a servicios externos controlados por el atacante y la toma de control persistente de integraciones compartidas. Esta vulnerabilidad está corregida en 1.123.43, 2.22.1 y 2.20.7.
References
| https://github.com/n8n-io/n8n/security/advisories/GHSA-6h4j-wcr9-2vg7 | mitigation, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-45732 | advisory | |
| https://github.com/n8n-io/n8n | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-45732 changed 2026-06-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6h4j-wcr9-2vg7 changed 2026-07-20 | CC-BY-4.0 |
| NVD | CVE-2026-45732 changed 2026-10-26 | Public domain |