CVE-2026-103259: n8n: session token leak via Dynamic Credentials

HIGH
Published October 1, 2026
CISO Take

n8n versions before 2.39.6 (and 2.40.0 before 2.40.1) leak collaborators' session tokens through the Dynamic Credentials authorize and revoke endpoints, because an authenticated user who can register a resolver can point a fallback resolver at an attacker-controlled endpoint. Exploitation is constrained: it needs high privileges, high attack complexity and a victim who must click through the account connection flow (CVSS 7.6). Nothing suggests active exploitation. The flaw is not in CISA KEV, there is no public exploit or Nuclei template, SSVC says TRACK, and EPSS is low (0.00239) though it sits in the top 86th percentile. The concern is the blast radius of a stolen session: n8n workflows hold credentials for LLM APIs, databases and SaaS systems, so a hijacked collaborator session can give broad downstream access, and the scope-changed vector reflects that. Upgrade to 2.39.6 or 2.40.1, then review who holds resolver registration rights and rotate credentials accessible to any session that may have been exposed.

Sources:NVDEPSSGitHub Advisoryvulncheck.comATLASOpenSSF

What is the risk?

Medium-to-high overall. Exploitability is limited: the attacker needs an authenticated account with resolver registration rights, the attack is complex, and a victim must take part in the account connection flow. EPSS is low (0.00239), there is no public exploit, no scanner template and no KEV listing, and SSVC is TRACK. Impact is high because the vector is scope-changed with high confidentiality, integrity and availability, and a captured session token acts as the victim's identity. Risk is greatest in multi-user or shared n8n instances where many collaborators have delegated credentials to AI agents and integrations. The weakness is CWE-863 (incorrect authorization).

How does the attack unfold?

Initial Access
An attacker with resolver registration capability sets a fallback resolver to an attacker-controlled endpoint.
AML.T0012
Token Capture
A collaborator completes the account connection flow, and the authorize or revoke endpoint leaks their session token to the malicious resolver.
AML.T0091.000
Credential Access
The attacker replays the stolen session token to impersonate the collaborator and reach stored credentials for LLM, database and SaaS integrations.
AML.T0083
Impact
The attacker modifies agent workflows or exfiltrates data and abuses connected systems using the hijacked identity.
AML.T0086

What systems are affected?

PackageEcosystemVulnerable RangePatched
n8nnpm—No patch
210.5KOpenSSF 7.116 dependentsPushed 3d ago42% patched~19d to patchFull package profile →

Do you use n8n? You're affected.

How severe is it?

CVSS 3.1
7.6 / 10
EPSS
0.2%
chance of exploitation in 30 days
Higher than 15% of all CVEs
Exploitation Status
No known exploitation
Sophistication
Moderate

What is the attack surface?

AVACPRUISCIA
AVNetwork
ACHigh
PRHigh
UIRequired
SChanged
CHigh
IHigh
AHigh

What should I do?

1 step
  1. 1) Upgrade n8n to 2.39.6 or later on the 2.39 line, or to 2.40.1 or later on the 2.40 line. 2) Until patched, restrict the privilege to register or modify Dynamic Credentials resolvers to a minimal set of trusted administrators, and avoid completing account connection flows for resolvers you did not configure. 3) Review resolver configurations for unexpected fallback resolver URLs pointing to external or unfamiliar hosts. 4) Invalidate active sessions and force re-authentication for collaborators on exposed instances. 5) Rotate credentials stored in n8n that were reachable by potentially compromised sessions. 6) Detection: monitor outbound requests from the n8n host to unknown endpoints during authorize and revoke calls, and audit logs for resolver changes and unusual session use from new IPs. 7) Track GHSA-rx55-8qhx-4hwx and the VulnCheck advisory for updates.

What does CISA's SSVC say?

DecisionTrack
Exploitationnone
AutomatableNo
Technical Impacttotal

Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Article 15-Accuracy, robustness and cybersecurity
ISO 42001
A.6.2.6-AI system operation and monitoring
NIST AI RMF
MANAGE 2.3-Response to previously unknown risks
OWASP LLM Top 10
LLM06-Excessive Agency

Frequently Asked Questions

What is CVE-2026-103259?

n8n versions before 2.39.6 (and 2.40.0 before 2.40.1) leak collaborators' session tokens through the Dynamic Credentials authorize and revoke endpoints, because an authenticated user who can register a resolver can point a fallback resolver at an attacker-controlled endpoint. Exploitation is constrained: it needs high privileges, high attack complexity and a victim who must click through the account connection flow (CVSS 7.6). Nothing suggests active exploitation. The flaw is not in CISA KEV, there is no public exploit or Nuclei template, SSVC says TRACK, and EPSS is low (0.00239) though it sits in the top 86th percentile. The concern is the blast radius of a stolen session: n8n workflows hold credentials for LLM APIs, databases and SaaS systems, so a hijacked collaborator session can give broad downstream access, and the scope-changed vector reflects that. Upgrade to 2.39.6 or 2.40.1, then review who holds resolver registration rights and rotate credentials accessible to any session that may have been exposed.

Is CVE-2026-103259 actively exploited?

No confirmed active exploitation of CVE-2026-103259 has been reported, but organizations should still patch proactively.

How to fix CVE-2026-103259?

1) Upgrade n8n to 2.39.6 or later on the 2.39 line, or to 2.40.1 or later on the 2.40 line. 2) Until patched, restrict the privilege to register or modify Dynamic Credentials resolvers to a minimal set of trusted administrators, and avoid completing account connection flows for resolvers you did not configure. 3) Review resolver configurations for unexpected fallback resolver URLs pointing to external or unfamiliar hosts. 4) Invalidate active sessions and force re-authentication for collaborators on exposed instances. 5) Rotate credentials stored in n8n that were reachable by potentially compromised sessions. 6) Detection: monitor outbound requests from the n8n host to unknown endpoints during authorize and revoke calls, and audit logs for resolver changes and unusual session use from new IPs. 7) Track GHSA-rx55-8qhx-4hwx and the VulnCheck advisory for updates.

What systems are affected by CVE-2026-103259?

This vulnerability affects the following AI/ML architecture patterns: agent frameworks, workflow automation platforms, LLM orchestration pipelines, multi-tenant collaborative AI platforms.

What is the CVSS score for CVE-2026-103259?

CVE-2026-103259 has a CVSS v3.1 base score of 7.6 (HIGH). The EPSS exploitation probability is 0.24%.

What is the AI security impact?

Affected AI Architectures

agent frameworksworkflow automation platformsLLM orchestration pipelinesmulti-tenant collaborative AI platforms

MITRE ATLAS Techniques

AML.T0012Valid Accounts
AML.T0083Credentials from AI Agent Configuration
AML.T0091.000Application Access Token

Compliance Controls Affected

EU AI Act: Article 15
ISO 42001: A.6.2.6
NIST AI RMF: MANAGE 2.3
OWASP LLM Top 10: LLM06

What are the technical details?

Original Advisory

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.

Exploitation Scenario

A malicious or compromised insider with resolver registration rights on a shared n8n instance sets the fallback resolver of a Dynamic Credentials configuration to an endpoint they control. They then invite or socially nudge a colleague who manages AI agent workflows to connect an account through the normal flow. When the victim's authorize or revoke request is processed, their session token is sent to the attacker's endpoint. The attacker replays the token to impersonate the colleague, reads workflows and stored credentials for LLM providers and databases, and modifies an agent workflow to exfiltrate data or abuse connected tools.

Weaknesses (CWE)

CWE-863 — Incorrect Authorization: The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.

  • [Architecture and Design] Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
  • [Architecture and Design] Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor [REF-7].

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H

Timeline

Published
October 1, 2026
Last Modified
October 1, 2026
First Seen
October 1, 2026

Related Vulnerabilities