CVE-2026-42235
HIGH 8.8CVSS 4.0n8n Vulnerable to 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.
- Published
- 4 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79CWE-87
- Also known as
- GHSA-537j-gqpc-p7fq
- Sources
- NVDJSONOSV GHSA-537j-gqpc-p7fqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.8 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:* |
< 1.123.32 | 1.123.32 |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:* |
>= 2.17.0, < 2.17.4 | 2.17.4 |
| NVD | n8n | n8ncpe:2.3:a:n8n:n8n:2.18.0:*:*:*:enterprise:node.js:*:* |
= 2.18.0 | |
| OSV | npm | n8n | < 1.123.32 | 1.123.32 |
| OSV | npm | n8n | >= 2.18.0, < 2.18.1 | 2.18.1 |
| OSV | npm | n8n | >= 2.17.0, < 2.17.4 | 2.17.4 |
References
- https://github.com/n8n-io/n8n/security/advisories/GHSA-537j-gqpc-p7fq · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42235 · ADVISORY
- https://github.com/n8n-io/n8n · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 4 May 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 29 Apr 2026)