Duplicate Advisory: n8n: Privilege Escalation and Code Execution via Full Public API Key Scope Assignment to Token Exchange JWTs
n8n versions before 2.30.1 and 2.29.8 have a vulnerability where all Public API key scopes are assigned to JWTs issued via the Token Exchange module regardless of the user's role. This allows a low-privileged user with a valid external JWT to perform administrator-only Public API actions such as role escalation, user creation, and deletion. If unverified Community Package installation is enabled, remote code execution is possible. This advisory is a duplicate and has been withdrawn in favor of GHSA-777w-rpr6-c52h.
AI Analysis
Technical Summary
In n8n versions prior to 2.30.1 and 2.29.8, the Token Exchange module incorrectly assigns all Public API key scopes to JWTs it issues, ignoring the acting user's role. Consequently, 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, including role escalation (which requires an Advanced Permissions license), user creation, and user deletion. Additionally, if unverified Community Package installation is enabled, this vulnerability can lead to remote code execution. This advisory is a duplicate and has been withdrawn, referencing GHSA-777w-rpr6-c52h for authoritative details.
Potential Impact
A low-privileged user with a valid external JWT can escalate privileges to administrator level, create or delete users, and potentially execute remote code if unverified Community Package installation is enabled. This compromises system integrity and control over the n8n instance.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory GHSA-777w-rpr6-c52h for current remediation guidance. Until a fix is applied, restrict Token Exchange and Public API usage, and disable unverified Community Package installation to reduce risk.
Duplicate Advisory: n8n: Privilege Escalation and Code Execution via Full Public API Key Scope Assignment to Token Exchange JWTs
Description
n8n versions before 2.30.1 and 2.29.8 have a vulnerability where all Public API key scopes are assigned to JWTs issued via the Token Exchange module regardless of the user's role. This allows a low-privileged user with a valid external JWT to perform administrator-only Public API actions such as role escalation, user creation, and deletion. If unverified Community Package installation is enabled, remote code execution is possible. This advisory is a duplicate and has been withdrawn in favor of GHSA-777w-rpr6-c52h.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In n8n versions prior to 2.30.1 and 2.29.8, the Token Exchange module incorrectly assigns all Public API key scopes to JWTs it issues, ignoring the acting user's role. Consequently, 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, including role escalation (which requires an Advanced Permissions license), user creation, and user deletion. Additionally, if unverified Community Package installation is enabled, this vulnerability can lead to remote code execution. This advisory is a duplicate and has been withdrawn, referencing GHSA-777w-rpr6-c52h for authoritative details.
Potential Impact
A low-privileged user with a valid external JWT can escalate privileges to administrator level, create or delete users, and potentially execute remote code if unverified Community Package installation is enabled. This compromises system integrity and control over the n8n instance.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory GHSA-777w-rpr6-c52h for current remediation guidance. Until a fix is applied, restrict Token Exchange and Public API usage, and disable unverified Community Package installation to reduce risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-wq64-hcrf-8m56
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6150d09c2644c7f8da0546
Added to database: 07/22/2026, 23:22:56 UTC
Last enriched: 07/22/2026, 23:28:58 UTC
Last updated: 07/23/2026, 02:51:54 UTC
Views: 4
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.
External Links
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.