GHSA-6h4j-wcr9-2vg7: n8n Has a Cross-user Authorization Bypass in Dynamic Credential OAuth Endpoints
- Identifiers
- CVE-2026-45732GHSA-6h4j-wcr9-2vg7
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- n8nnpmDeclares an LLM dependency
Related items
- MediumCVE-2026-102610: fast-agent serve unauthenticated remote command execution via /mcp endpointSimilar attack · NVD/CVE Database
- CriticalCVE-2026-58490: Tracecat SAML authentication bypass through unsigned responses in Docker ComposeSimilar attack · NVD/CVE Database
- MediumCVE-2026-124028: mistral.rs delimiter injection allows attacker-chosen tool calls via quoted textSimilar attack · NVD/CVE Database
- HighCVE-2026-123974: TorchServe local privilege escalation via predictable /tmp extraction directorySimilar attack · NVD/CVE Database
- InfoOpenAI Says New GPT-6 Cyber Model Hunts Flaws Without Crossing the LineSimilar attack · SecurityWeek