Skip to main content
VulnerabilityPublished

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

Affects n8nSource GCVE Database

0

CVSS 8.9 High.

Data as of 22 Jul 2026, 23:28 UTC

CVSS 4.0 base score
8.9High
How severe the flaw is on the 0–10 CVSS scale.
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

What to do

Affected software

ProductAffectedFixed in
npmn8nAffected–Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until a fix is applied, restrict Token Exchange and Public API usage, and disable unverified Community Package installation to reduce risk.

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.

References

Community reviews

Loading reviews…