{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "n8n"
              },
              {
                "fixed": "2.35.4"
              },
              {
                "introduced": "2.36.x"
              },
              {
                "fixed": "2.36.2"
              }
            ],
            "source": "DESCRIPTION"
          },
          "events": [
            {
              "introduced": "9fbd4c0738aaae893990b342d256843fe139fd5a"
            },
            {
              "fixed": "d2ce3c084c228622c2ffe7c245d25870430e18a9"
            },
            {
              "introduced": "8f82586bba83c4c87aa25a5833cd47ebc86bdea1"
            },
            {
              "fixed": "bc9090e8c61d0dc84aa85528e62142dfb7001243"
            }
          ],
          "repo": "https://github.com/n8n-io/n8n",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4r56-g65c-fm83"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85166.json"
  },
  "details": "n8n before 2.35.4 and 2.36.x before 2.36.2 does not validate credential references in the inline workflow JSON of nodes that execute an inline sub-workflow (e.g., the Workflow Tool node). A shared-workflow editor, or any user creating/updating a workflow via the REST API, Public API, or MCP, can persist a node referencing a credential they do not own. When the workflow is later executed under an identity that holds the credential, the inline sub-workflow resolves the secret and can send it to an attacker-controlled endpoint, resulting in credential exfiltration.",
  "id": "CVE-2026-85166",
  "modified": "2026-09-05T03:30:26.869563721Z",
  "published": "2026-09-03T11:22:16.613Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85166.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-4r56-g65c-fm83"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-85166"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/n8n-before-2.36.2-credential-exfiltration-via-workflow-tool-node"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:L",
      "type": "CVSS_V4"
    }
  ],
  "summary": "n8n before 2.36.2 Credential Exfiltration via Workflow Tool Node"
}