Severity by source
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
Network-reachable and low-privileged (PR:L), but obtaining a trusted external JWT is an added requirement so AC:H; privilege escalation and RCE cross a trust boundary so S:C with full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
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.
AnalysisAI
Privilege escalation and potential remote code execution affects n8n workflow-automation instances before 2.30.1 and 2.29.8 where both the Token Exchange module and Public API are enabled. Because JWTs issued via Token Exchange are granted the full set of Public API key scopes irrespective of the acting user's role, a low-privileged user holding a valid external JWT trusted by a configured issuer can invoke administrator-only operations - creating, deleting, or escalating users, and, where unverified Community Package installation is permitted, executing arbitrary code. No public exploit identified at time of analysis; VulnCheck-reported with a CVSS 4.0 base of 8.9.
Technical ContextAI
n8n is a source-available workflow automation platform (fair-code) whose Public API exposes privileged administrative endpoints (user management, roles, etc.) gated by API-key scopes. The Token Exchange module lets an external, issuer-signed JWT be exchanged for an n8n access token, effectively federating identity from a trusted issuer. The root cause is CWE-269 (Improper Privilege Management): the scope-assignment logic for Token-Exchange-issued JWTs statically attaches every Public API scope rather than deriving scopes from the authenticated user's role, so the resulting access token over-privileges the bearer. The RCE path leverages n8n's Community Package installation feature - when it permits unverified/unsigned packages, a caller who can drive package installation can execute code within the n8n process.
RemediationAI
Upgrade to a fixed release: n8n 2.30.1 (current line) or 2.29.8 (maintenance line) per the vendor advisory GHSA-777w-rpr6-c52h. Where immediate upgrade is not possible, disable the Token Exchange module, which removes the vulnerable JWT issuance path entirely at the cost of any federated token-exchange login integrations; alternatively disable the Public API, which blocks the administrative endpoints the over-scoped token abuses but breaks any automation relying on the Public API. To specifically cut the RCE path, disable unverified Community Package installation so untrusted packages cannot be installed. As a network control, restrict access to the Public API and Token Exchange endpoints to trusted management networks. Confirm exact configuration flag names against the vendor advisory before applying, and validate that any external issuer trusted by Token Exchange is tightly scoped.
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
The n8n package 0.218.0 for Node.js allows Information Disclosure. Rated high severity (CVSS 7.5), this vulnerability is
The n8n package 0.218.0 for Node.js allows Directory Traversal. Rated medium severity (CVSS 6.5), this vulnerability is
n8n versions prior to 2.5.0 contain a critical SSH host key verification bypass in the Source Control feature that allow
This vulnerability in n8n (an open-source workflow automation platform) is an authentication bypass in the OAuth callbac
Code injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22 allows authenticated users to execute arbitrary c
Same weakness CWE-269 – Improper Privilege Management
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-47639
GHSA-wq64-hcrf-8m56