N8n-io n8n
n8n: XSS via MCP OAuth client
n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, an unauthenticated attacker could register a malicious MCP OAuth client with a crafted client_name. If a victim user authorized the OAuth consent dialog and a second user subsequently revoked that access, a toast notification would render the injected script. Clicking the link would execute arbitrary JavaScript in the victim's authenticated n8n browser session, enabling credential and session token theft, workflow manipulation, or privilege escalation. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.123.32
- >= 2.17.0, < 2.17.4
- >= 2.18.0, < 2.18.1
Fixed in 1.123.32, 2.17.4, 2.18.1
Mitigation
Upgrade n8n to 1.123.32 or 2.17.4 or 2.18.1 or later.
References
- Vendor advisory github.com/n8n-io/n8n/security/advisories/GHSA…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.