CVE-2026-85166: n8n before 2.36.2 Credential Exfiltration via Workflow Tool Node

Published Sep 3, 2026
·
Updated

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 Software

2 affected components
n8n<2.35.4
n8n>2.36.0<2.36.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.35.4
  2. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.36.2

Event History

Sep 3, 2026
CVE Published
via MITRE·11:22 AM
Data Sourced
via MITRE·11:22 AM
DescriptionWeakness

Frequently Asked Questions

1

Which users or interfaces can introduce a malicious credential reference?

A shared-workflow editor can do so, as can any user who can create or update workflows through the REST API, Public API, or MCP.

2

When are the referenced credentials exposed?

The credential is resolved when the workflow executes under an identity that holds it. The inline sub-workflow can then send the secret to an attacker-controlled endpoint.

3

Which n8n versions contain the validation issue?

Affected versions are those before 2.35.4 and the 2.36.x line before 2.36.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203