{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "cpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:*",
              "cpe:2.3:a:n8n:n8n:2.18.0:*:*:*:enterprise:node.js:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.123.32"
              },
              {
                "introduced": "2.17.0"
              },
              {
                "fixed": "2.17.4"
              },
              {
                "introduced": "2.18.0"
              },
              {
                "last_affected": "2.18.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "CPE_STRING"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "90cb7227cf1b18b3065d92c943c07a3b8b3b63a1"
            },
            {
              "introduced": "56d336b877420271ff3e1b62b27333140ffc1ef3"
            },
            {
              "fixed": "bc9cbea6c94dda489a0daf872373b100d019cab0"
            },
            {
              "introduced": "6336f0a447eab3600b1fe13216f1abd5b6e25dff"
            }
          ],
          "repo": "https://github.com/n8n-io/n8n",
          "type": "GIT"
        }
      ],
      "versions": [
        "2.18.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-f6x8-65q6-j9m9"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-601"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42230.json"
  },
  "details": "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.",
  "id": "CVE-2026-42230",
  "modified": "2026-07-08T05:38:12.075785147Z",
  "published": "2026-05-04T18:28:43.069Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42230.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-f6x8-65q6-j9m9"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42230"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "n8n: Open Redirect in MCP OAuth Consent Flow"
}