Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Duplicate Advisory: n8n: Privilege Escalation and Code Execution via Full Public API Key Scope Assignment to Token Exchange JWTs

0
High
Published: 07/22/2026 (07/22/2026, 12:32:17 UTC)
Source: GCVE Database
Product: n8n

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
Low
Subsq. Availability
Low
Scope
X
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

npmghsa
n8n

Run 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

AILast updated: 07/22/2026, 23:28:58 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses