Description
n8n versions before 2.39.6 and 2.40.0 before 2.40.1 contain a session token leakage vulnerability in the Dynamic Credentials authorize and revoke endpoints. Attackers with resolver registration capability can capture collaborators' session tokens by setting a fallback resolver to an attacker-controlled endpoint during the account connection flow, enabling unauthorized credential access.
Published: 2026-10-01
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Unauthorized Credential Access via Session Token Leak
Action: Immediate Patch
AI Analysis

Impact

The vulnerability allows an attacker who can register a resolver to set a fallback resolver that points to an attacker‑controlled endpoint during the account connection flow, causing the Dynamic Credentials authorize and revoke endpoints to expose session tokens. This leakage of session tokens enables the attacker to access collaborators’ credentials without authorization, representing a credential‑leak weakness that compromises confidentiality and integrity of user accounts.

Affected Systems

The affected product is n8n, specifically all versions before 2.39.6 and the 2.40.x series prior to 2.40.1.

Risk and Exploitability

The CVSS score of 8.5 classifies the flaw as high severity. EPSS information is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the ability to register a resolver, implying privileged or internal access. Once a fallback resolver is configured, any user interacting with the dynamic credential flow can have their session tokens intercepted, allowing the attacker to impersonate or reuse those sessions. The flaw is API‑based, so a remote adversary with registrar privileges could exploit it remotely.

Generated by OpenCVE AI on October 1, 2026 at 14:05 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade n8n to version 2.39.6 or later, or to 2.40.1 or later to obtain the vendor fix that removes the token leak.
  • Remove or review all resolver configurations; delete any that are not strictly required or that point to external endpoints.
  • Restrict the ability to register resolvers to a trusted user group to reduce the attack surface.
  • If an immediate upgrade is not possible, consider temporarily disabling the dynamic credentials feature until the patch can be applied.

Generated by OpenCVE AI on October 1, 2026 at 14:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 01 Oct 2026 11:00:00 +0000

Type Values Removed Values Added
Description n8n versions before 2.39.6 and 2.40.0 before 2.40.1 contain a session token leakage vulnerability in the Dynamic Credentials authorize and revoke endpoints. Attackers with resolver registration capability can capture collaborators' session tokens by setting a fallback resolver to an attacker-controlled endpoint during the account connection flow, enabling unauthorized credential access.
Title n8n before 2.39.6 and 2.40.x before 2.40.1 Session Token Leak via Dynamic Credentials
First Time appeared N8n
N8n n8n
Weaknesses CWE-863
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:H/SC:H/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-01T10:42:02.817Z

Reserved: 2026-09-30T10:55:39.869Z

Link: CVE-2026-103259

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-01T11:17:20.473

Modified: 2026-10-01T11:17:20.610

Link: CVE-2026-103259

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T16:45:09Z

Weaknesses