CVE-2026-42236: n8n Vulnerable to Unauthenticated Denial of Service via MCP Client Registration
n8n's MCP OAuth client registration endpoint accepts unauthenticated requests and stores them without limits. An attacker can send large registration payloads and exhaust server memory, taking the instance down, even when MCP access is switched off. Fixed in n8n 1.123.32, 2.17.4 and 2.18.1.
Published Apr 29, 2026 · Updated May 8, 2026 · Analysis Oct 28, 2026
What an attacker can do
The registration endpoint stores client data without adequate resource controls (CWE-770). No login is needed. The MCP enable/disable toggle gates MCP access but not registration, so the endpoint is reachable whether or not MCP is on.
An attacker posts large registration bodies, repeatedly, until the process runs out of memory and n8n becomes unavailable. Every workflow, schedule and webhook on that instance stops while it is down. A restart may bring it back, but the stored clients remain and the attacker can repeat the attack.
The patches add an upper bound on the number of registered clients and stop creation when MCP is disabled on the instance. Payload-size limits already exist and can be tuned. Internet-facing n8n instances are the main target.
Who is affected
The npm package n8n below 1.123.32, 2.x from 2.0.0 below 2.17.4, and 2.18.0. All instances are reachable by this, regardless of whether MCP is enabled.
npm ls n8nFor Docker, check the image tag.
n8n
- Ecosystem
- npm
- Affected
- < 1.123.32
- Fixed in
- 1.123.32
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.18.0, < 2.18.1
- Fixed in
- 2.18.1
- Check
npm ls n8n
n8n
- Ecosystem
- npm
- Affected
- >= 2.0.0, < 2.17.4
- Fixed in
- 2.17.4
- Check
npm ls n8n
How to fix it
Upgrade to n8n 1.123.32, 2.17.4 or 2.18.1, or later.
Temporary mitigations from the advisory, which do not fully remediate: restrict network access to the instance from untrusted sources, and lower the N8N_PAYLOAD_SIZE_MAX environment variable below its default to cap request size. A reverse proxy rule that blocks unauthenticated calls to the MCP client registration route also helps if you do not use MCP.
How to tell if you were hit
Watch n8n memory use for steady growth, and look for out-of-memory kills or restarts of the process. In access logs, look for many POST requests to the MCP OAuth client registration route, particularly large bodies from one address or from addresses you do not know. Check the stored list of registered MCP clients for a long tail of unfamiliar entries.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
The MCP OAuth client registration endpoint accepted unauthenticated requests and stored client data without adequate resource controls. An unauthenticated remote attacker could exhaust server memory resources by sending large registration payloads, rendering the n8n instance unavailable. The MCP enable/disable toggle gates MCP access but did not restrict client registrations, meaning the endpoint is reachable regardless of whether MCP access is enabled on the instance.
The patches address the unbound registration with an upper bound of registered clients and disabling creation when MCP is disabled on the instance. Mean to restrict the payload size of requests already exist and can be used to control additional risks.
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 requests from untrusted sources.
- Reduce the maximum accepted payload size by lowering the
N8N_PAYLOAD_SIZE_MAXenvironment variable from its default value.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
Credited to ori-ron.
Questions
- Is MCP having to be enabled a precondition?
No. The registration endpoint is reachable even when MCP access is disabled on the instance.
- Does the attacker need credentials?
No. The requests are unauthenticated, and the CVSS vector has no privileges and no user interaction.
- What changed in the fix?
An upper bound on registered clients, and no client creation when MCP is disabled.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More n8n vulnerabilities
All n8n entriesCVE-2026-86073
n8n: Per-Resource OAuth Consent Bypass via Unbound Refresh Token Resource Substitution
medium5.9Sep 10, 2026CVE-2026-86074
n8n: Instance AI Credential Setup Accepts Unvalidated Probe URL from Fetched Content
medium5.9Sep 10, 2026CVE-2026-86075
n8n: Unauthenticated Persistent Storage Exhaustion via OAuth Dynamic Client Registration Endpoint
high8.7Sep 10, 2026CVE-2026-86076
n8n: Expression Sandbox Escape via Class-Field Sanitizer Rebinding Can Lead to Code Execution
high8.7Sep 10, 2026CVE-2026-86077
n8n: Anonymous Approval-Gate Bypass via Reused resumeToken over the Chat WebSocket
medium6.3Sep 10, 2026CVE-2026-86078
n8n: Prototype Pollution via Workflow Structure Summary Can Lead to Denial of Service
medium6.0Sep 10, 2026
