Skip to content
MediumVulnerability

GHSA-f6x8-65q6-j9m9: n8n has Open Redirect in MCP OAuth Consent Flow

Published
Record updated
View JSON
Affected
  • n8n >= 2.0.0, < 2.17.4, fixed in 2.17.4, released April 22, 2026, 7 days before disclosure
  • n8n >= 2.18.0, < 2.18.1, fixed in 2.18.1, released April 22, 2026, 7 days before disclosure
  • n8n < 1.123.32, fixed in 1.123.32, released April 22, 2026, 7 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

n8n's `/mcp-oauth/register` endpoint accepts OAuth client registrations without authentication, so arbitrary `redirect_uri` values can be registered. When a user clicks Deny on the MCP OAuth consent dialog, the `handleDeny` handler redirects them to that registered URI without validation, creating an open redirect. An attacker can send a phishing link that silently sends a victim to an external site after they deny consent.

Mitigation

Fixed in n8n 1.123.32, 2.17.4, and 2.18.1. Upgrade to one of these versions or later. If upgrading is not immediately possible, restrict network access to the n8n instance so untrusted users cannot reach the MCP OAuth endpoints, and limit access to fully trusted users only. The source states these workarounds do not fully remediate the risk and are short-term measures only.