{"id":"CVE-2026-85166","state":"PUBLISHED","title":"n8n before 2.36.2 Credential Exfiltration via Workflow Tool Node","description":"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.","publishedAt":"2026-09-03T11:22:16.613Z","updatedAt":"2026-10-29T21:16:58.264Z","severity":{"score":7.2,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["n8n-io n8n"],"affected":[{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"2.36.0","status":"affected","lessThan":"2.36.2","versionType":"semver"},{"version":"2.36.2","status":"unaffected","versionType":"semver"}]},{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.35.4","versionType":"semver"},{"version":"2.35.4","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/n8n-io/n8n/security/advisories/GHSA-4r56-g65c-fm83","https://www.vulncheck.com/advisories/n8n-before-2.36.2-credential-exfiltration-via-workflow-tool-node"],"weaknesses":["CWE-863"],"ingestedAt":"2026-10-29T23:12:04.845Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/85xxx/CVE-2026-85166.json","commit":"dc7676b3f67d6707e4927968546e7e0125ff7ec7","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-85166","state":"PUBLISHED","datePublished":"2026-09-03T11:22:16.613Z","dateUpdated":"2026-10-29T21:16:58.264Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-09-03T11:05:09.078Z"},"containers":{"cna":{"title":"n8n before 2.36.2 Credential Exfiltration via Workflow Tool Node","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"2.36.0","status":"affected","lessThan":"2.36.2","versionType":"semver"},{"version":"2.36.2","status":"unaffected","versionType":"semver"}]},{"vendor":"n8n-io","product":"n8n","packageURL":"pkg:npm/n8n","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.35.4","versionType":"semver"},{"version":"2.35.4","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-4r56-g65c-fm83","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-4r56-g65c-fm83)"},{"url":"https://www.vulncheck.com/advisories/n8n-before-2.36.2-credential-exfiltration-via-workflow-tool-node","name":"VulnCheck Advisory: n8n before 2.36.2 Credential Exfiltration via Workflow Tool Node","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"LOW","baseScore":7.2,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-29T21:16:58.264Z"},"datePublic":"2026-08-19T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*","versionEndExcluding":"2.36.2","versionStartIncluding":"2.36.0"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*","versionEndExcluding":"2.35.4"}]}]}],"credits":[{"lang":"en","value":"Solidscripting","type":"reporter"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-03T14:05:57.164569Z","id":"CVE-2026-85166","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-03T14:30:17.597Z"}}]}}}