CVE-2026-42230: n8n: Open Redirect in MCP OAuth Consent Flow

Published Apr 29, 2026
·
Updated

Impact The /mcp-oauth/register endpoint accepted OAuth client registrations without authentication, allowing arbitrary redirecturi values to be registered. When a user denies the MCP OAuth consent dialog, the handleDeny handler redirects the user to the registered redirecturi 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.

Other sources

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 redirecturi values to be registered. When a user denies the MCP OAuth consent dialog, the handleDeny handler redirects the user to the registered redirecturi 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.

MITRE

Affected Software

6 affected componentsFixes available
npm/n8n>=2.0.0<2.17.4
2.17.4
npm/n8n>=2.18.0<2.18.1
2.18.1
npm/n8n<1.123.32
1.123.32
n8n N8n Node.js<1.123.32
n8n N8n Node.js>=2.17.0<2.17.4
n8n N8n Node.js=2.18.0

Event History

Apr 29, 2026
Advisory Published
via GitHub·09:10 PM
Data Sourced
via GitHub·09:10 PM
DescriptionSeverityWeaknessAffected Software
May 4, 2026
CVE Published
via MITRE·06:28 PM
Data Sourced
via MITRE·06:28 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-42230?

CVE-2026-42230 is a high severity vulnerability due to unauthorized client registration allowing arbitrary redirect URIs.

2

How do I fix CVE-2026-42230?

To fix CVE-2026-42230, upgrade n8n to version 2.17.4, 2.18.1, or later if using version 2, or to version 1.123.32 if using version 1.

3

What are the affected versions for CVE-2026-42230?

CVE-2026-42230 affects n8n versions between 2.0.0 and 2.17.4, and up to version 2.18.0, as well as up to version 1.123.32.

4

What consequences can arise from CVE-2026-42230?

Exploitation of CVE-2026-42230 can lead to unauthorized redirection of users, potentially resulting in phishing attacks.

5

How can I verify if my system is vulnerable to CVE-2026-42230?

You can verify if your system is vulnerable to CVE-2026-42230 by checking the installed version of n8n against the affected versions listed for the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203