Skip to content
HighVulnerability

GHSA-537j-gqpc-p7fq: n8n Vulnerable to XSS via MCP OAuth client

Published
Record updated
View JSON
Affected
  • n8n >= 2.17.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.3%

Summary

An unauthenticated attacker can register a malicious MCP OAuth client with a crafted client_name. When a second user revokes access after a victim authorized the OAuth consent dialog, a toast notification renders the injected script. Clicking the link runs arbitrary JavaScript in the victim's authenticated n8n browser session, enabling credential and session token theft, workflow manipulation, or privilege escalation.

Mitigation

Fixed in n8n version 2.14.2; users should upgrade to this version or later. Until then, administrators should consider restricting access to the n8n instance and the MCP OAuth registration endpoint to trusted users only, and disabling MCP server functionality if it is not actively required. The source states these workarounds do not fully remediate the risk and are only short-term measures.