{"id":"CVE-2026-85166","revision":"94acb1d773724980a9c8b65f2a38ddce","records":[{"revision":"94acb1d773724980a9c8b65f2a38ddce","observedAt":"2026-10-29T21:48:56.968+00:00","statement":{"source":"cve-program","id":"CVE-2026-85166","aliases":[],"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.","state":0,"publishedAt":"2026-09-03T11:22:16.613+00:00","modifiedAt":"2026-10-29T20:20:17.741+00:00","affected":[{"ecosystem":"Vendor product","name":"n8n","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"n8n-io\",\n                    \"product\": \"n8n\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:npm/n8n\",\n                    \"versions\": [\n                        {\n                            \"version\": \"2.36.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"2.36.2\"\n                        },\n                        {\n                            \"version\": \"2.36.2\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"n8n","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"n8n-io\",\n                    \"product\": \"n8n\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:npm/n8n\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"2.35.4\"\n                        },\n                        {\n                            \"version\": \"2.35.4\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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","score":7.2,"severity":"HIGH"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-85166","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-85166","identifiers":["CVE-2026-85166"]},"retained":false,"historicalAffected":[]}],"coverage":[]}