Skip to main content
Mallory
← Back to News
identity-authentication-vulnerabilityprivilege-escalation-methodinternet-facing-service-vulnerabilitywidely-deployed-product-advisory

n8n Token Exchange Flaw Grants Admin API Access and Can Lead to RCE

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 22, 2026

n8n Token Exchange Flaw Grants Admin API Access and Can Lead to RCE

A high-severity flaw tracked as CVE-2026-65595 affects n8n versions before 2.30.1 and, on a separate branch, before 2.29.8. The vulnerability stems from the Token Exchange module assigning all Public API scopes to JWT-derived access tokens after validating an external JWT from a trusted issuer, allowing a low-privileged user to gain administrator-level Public API access when both Token Exchange and Public API are enabled. The issue is rated CVSS v4.0 8.9 and classified as CWE-269 Improper Privilege Management.

Successful exploitation can let an attacker perform admin-only actions including creating or deleting users, escalating roles, modifying workflows, reading database credentials stored in connection configurations, and exporting sensitive system data. In deployments that also allow installation of unverified Community Packages, the compromise can be extended to remote code execution on the n8n host, creating a path to full takeover of the automation platform and its underlying server.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

1 event · Jul 22, 2026
  1. Jul 22, 20264mo ago

    CVE-2026-65595 disclosed in n8n Token Exchange module

    A high-severity privilege escalation vulnerability, CVE-2026-65595, was publicly disclosed affecting n8n versions before 2.30.1 and before 2.29.8 on a separate branch. The flaw allows a low-privileged user with a valid external JWT to gain administrator-level Public API access, and in some configurations may lead to remote code execution.

    CVE-2026-65595 - n8n before 2.30.1 Privilege Escalation via Token Exchange
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
N8nN8N

Organizations

1 linked
N8n
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.