CVE-2026-65595: Improper Privilege Management in n8n-io n8n
n8n before 2.30.1 and 2.29.8 assigns all Public API key scopes to JWTs issued through the Token Exchange module regardless of the acting user's role. On instances where the Token Exchange feature and Public API are enabled, a low-privileged user who can obtain a valid external JWT trusted by a configured issuer can use the resulting access token to invoke administrator-only Public API operations such as role escalation, user creation, and user deletion (role escalation requires an Advanced Permissions license), and, when unverified Community Package installation is enabled, achieve remote code execution.
AI Analysis
Technical Summary
CVE-2026-65595 affects n8n versions prior to 2.30.1 and 2.29.8. The vulnerability arises because all Public API key scopes are assigned to JWTs issued through the Token Exchange module regardless of the user's role. Consequently, a low-privileged user who obtains a valid external JWT trusted by a configured issuer can use the resulting access token to invoke administrator-only Public API operations. Role escalation requires an Advanced Permissions license. Additionally, if unverified Community Package installation is enabled, remote code execution is possible.
Potential Impact
Exploitation allows low-privileged users to escalate privileges to administrator level, create and delete users, and perform other administrator-only API operations. With unverified Community Package installation enabled, attackers can achieve remote code execution on the affected system. This poses a significant risk to system integrity and confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict or disable the Token Exchange module and Public API features if possible, and disable unverified Community Package installation to reduce risk.
CVE-2026-65595: Improper Privilege Management in n8n-io n8n
Description
n8n before 2.30.1 and 2.29.8 assigns all Public API key scopes to JWTs issued through the Token Exchange module regardless of the acting user's role. On instances where the Token Exchange feature and Public API are enabled, a low-privileged user who can obtain a valid external JWT trusted by a configured issuer can use the resulting access token to invoke administrator-only Public API operations such as role escalation, user creation, and user deletion (role escalation requires an Advanced Permissions license), and, when unverified Community Package installation is enabled, achieve remote code execution.
CVSS v4.0
Score 8.9high
Affected software
pkg:github/n8n-io/n8nRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-65595 affects n8n versions prior to 2.30.1 and 2.29.8. The vulnerability arises because all Public API key scopes are assigned to JWTs issued through the Token Exchange module regardless of the user's role. Consequently, a low-privileged user who obtains a valid external JWT trusted by a configured issuer can use the resulting access token to invoke administrator-only Public API operations. Role escalation requires an Advanced Permissions license. Additionally, if unverified Community Package installation is enabled, remote code execution is possible.
Potential Impact
Exploitation allows low-privileged users to escalate privileges to administrator level, create and delete users, and perform other administrator-only API operations. With unverified Community Package installation enabled, attackers can achieve remote code execution on the affected system. This poses a significant risk to system integrity and confidentiality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict or disable the Token Exchange module and Public API features if possible, and disable unverified Community Package installation to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-22T10:45:44.832Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a60ab939c2644c7f8eced41
Added to database: 07/22/2026, 11:37:55 UTC
Last enriched: 07/22/2026, 11:52:31 UTC
Last updated: 07/23/2026, 02:51:54 UTC
Views: 29
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.