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 is an improper privilege management vulnerability in n8n versions prior to 2.30.1 and 2.29.8. The vulnerability arises because the Token Exchange module assigns all Public API key scopes to JWTs without considering the acting user's role. Consequently, a low-privileged user who can obtain a valid external JWT trusted by a configured issuer can leverage the resulting access token to invoke administrator-only Public API operations. These operations include role escalation (which requires an Advanced Permissions license), user creation, and user deletion. Additionally, if unverified Community Package installation is enabled, the attacker may achieve remote code execution. This vulnerability has a CVSS 4.0 score of 8.9, indicating high severity.
Potential Impact
Exploitation allows a low-privileged user to escalate privileges to administrator level, create and delete users, and potentially execute remote code on the affected system if unverified Community Package installation is enabled. This compromises system integrity, confidentiality, and availability. The vulnerability affects instances where both the Token Exchange feature and Public API are enabled.
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 feature and Public API if possible, and avoid enabling unverified Community Package installation. Monitor for updates from the vendor regarding patches or official mitigations.
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 is an improper privilege management vulnerability in n8n versions prior to 2.30.1 and 2.29.8. The vulnerability arises because the Token Exchange module assigns all Public API key scopes to JWTs without considering the acting user's role. Consequently, a low-privileged user who can obtain a valid external JWT trusted by a configured issuer can leverage the resulting access token to invoke administrator-only Public API operations. These operations include role escalation (which requires an Advanced Permissions license), user creation, and user deletion. Additionally, if unverified Community Package installation is enabled, the attacker may achieve remote code execution. This vulnerability has a CVSS 4.0 score of 8.9, indicating high severity.
Potential Impact
Exploitation allows a low-privileged user to escalate privileges to administrator level, create and delete users, and potentially execute remote code on the affected system if unverified Community Package installation is enabled. This compromises system integrity, confidentiality, and availability. The vulnerability affects instances where both the Token Exchange feature and Public API are enabled.
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 feature and Public API if possible, and avoid enabling unverified Community Package installation. Monitor for updates from the vendor regarding patches or official mitigations.
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/30/2026, 02:09:47 UTC
Last updated: 09/04/2026, 12:49:10 UTC
Views: 88
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.