GHSA-537j-gqpc-p7fq: n8n Vulnerable to XSS via MCP OAuth client
- Identifiers
- CVE-2026-42235GHSA-537j-gqpc-p7fq
- Published
- Record updated
- 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.
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.
- n8nnpmLLM dependency since 2026-02-10
Topics
Related items
- HighCVE-2026-123818: LMDeploy is a toolkit for compressing, deploying, and serving large language models. From 0.12.3 until 0.15.0…Similar attack · NVD/CVE Database
- HighGHSA-vvr2-h2jp-838m: Code Graph RAG: MCP paginated read_file path traversal / arbitrary file readSimilar attack · GitHub Advisory Database
- MediumAttackers Crash Claude's 'Office Party' Flaw to Run Malicious Code on LinuxSimilar attack · Dark Reading
- MediumCVE-2026-124588: huggingface finetrainers code injection via Library argumentSimilar attack · NVD/CVE Database
- MediumTaiwan-Based Hacker Used BOSSAI AI Agents to Steal Taipei Emergency Dispatch RecordsSimilar attack · The Hacker News