Skip to content
HighVulnerability

GHSA-6h4j-wcr9-2vg7: n8n Has a Cross-user Authorization Bypass in Dynamic Credential OAuth Endpoints

Published
Record updated
View JSON
Affected
  • n8n >= 2.0.0-rc.0, < 2.20.7, fixed in 2.20.7, released May 13, 2026, 1 day before disclosure
  • n8n >= 2.21.0, < 2.21.1, fixed in 2.21.1, released May 13, 2026, 1 day before disclosure
  • n8n < 1.123.43, fixed in 1.123.43, released May 13, 2026, 1 day before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

The OAuth1 and OAuth2 credential reconnect endpoints in n8n authorized access using `credential:read` instead of `credential:update`. An authenticated user with read-only access to a shared credential could start a reconnect flow and overwrite its stored tokens with ones tied to an external account they control, so workflows using that credential would run under the attacker's identity. The issue affects instances where credentials are shared with other users or across projects.

Mitigation

Fixed in n8n versions 1.123.43, 2.20.7, and 2.21.1; users should upgrade to one of these or later. If upgrading is not immediately possible, restrict credential sharing to fully trusted users only and audit shared credentials for unexpected OAuth token changes, revoking any tokens that may have been replaced. These workarounds do not fully remediate the risk and are short-term measures only.