CVE-2026-42230
JSON

5.1medium

n8n: Open Redirect in MCP OAuth Consent Flow

Severity
5.1medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-f6x8-65q6-j9m9

Description

n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, the /mcp-oauth/register endpoint accepted OAuth client registrations without authentication, allowing arbitrary redirect_uri values to be registered. When a user denies the MCP OAuth consent dialog, the handleDeny handler redirects the user to the registered redirect_uri without validation, enabling an open redirect to an attacker-controlled URL. An attacker can craft a phishing link and send it to a victim; if the victim clicks "Deny" on the consent page, they are silently redirected to an external site. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.

Affected

Product or packageVersionsReported by
n8n-io n8n< 1.123.32, >= 2.17.0, < 2.17.4, >= 2.18.0, < 2.18.1CVE List
n8n (npm)before 1.123.32, from 2.18.0 before 2.18.1, from 2.0.0 before 2.17.4GitHub Advisory Database
n8n n8nbefore 1.123.32, from 2.17.0 before 2.17.4, 2.18.0NVD

All scores

GitHub_M5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
GitHub4.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-601

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, the /mcp-oauth/register endpoint accepted OAuth client registrations without authentication, allowing arbitrary redirect_uri values to be registered. When a user denies the MCP OAuth consent dialog, the handleDeny handler redirects the user to the registered redirect_uri without validation, enabling an open redirect to an attacker-controlled URL. An attacker can craft a phishing link and send it to a victim; if the victim clicks "Deny" on the consent page, they are silently redirected to an external site. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.

GitHub Advisory Database

Impact

The /mcp-oauth/register endpoint accepted OAuth client registrations without authentication, allowing arbitrary redirect_uri values to be registered. When a user denies the MCP OAuth consent dialog, the handleDeny handler redirects the user to the registered redirect_uri without validation, enabling an open redirect to an attacker-controlled URL. An attacker can craft a phishing link and send it to a victim; if the victim clicks "Deny" on the consent page, they are silently redirected to an external site.

Patches

The issue has been fixed in n8n versions 1.123.32, 2.17.4, and 2.18.1. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict network access to the n8n instance to prevent untrusted users from reaching the MCP OAuth endpoints.
  • Limit access to the n8n instance to fully trusted users only.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

NVD (es)

n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de las versiones 1.123.32, 2.17.4 y 2.18.1, el endpoint /mcp-oauth/register aceptaba registros de clientes OAuth sin autenticación, permitiendo que se registraran valores arbitrarios de redirect_uri. Cuando un usuario deniega el diálogo de consentimiento de MCP OAuth, el gestor handleDeny redirige al usuario a la redirect_uri registrada sin validación, habilitando una redirección abierta a una URL controlada por el atacante. Un atacante puede elaborar un enlace de phishing y enviarlo a una víctima; si la víctima hace clic en ’Denegar’ en la página de consentimiento, es redirigida silenciosamente a un sitio externo. Este problema ha sido parcheado en las versiones 1.123.32, 2.17.4 y 2.18.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42230 changed 2026-05-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-f6x8-65q6-j9m9 changed 2026-05-08CC-BY-4.0
NVDCVE-2026-42230 changed 2026-11-11Public domain