GHSA-wq64-hcrf-8m56: Duplicate Advisory N8n: Privilege Escalation And Code Vulnerability
HIGHGHSA-wq64-hcrf-8m56 is a HIGH n8n: privilege escalation and code vulnerability (CWE-269: Improper Privilege Management) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves n8n: privilege escalation and code execution via full public api key scope assignment to token exchange jwts. Remediation is available in the latest vendor maintenance releases.
GHSA-wq64-hcrf-8m56 at a Glance
How to Fix GHSA-wq64-hcrf-8m56
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install n8n@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls n8n
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-wq64-hcrf-8m56, inspect your project dependencies using npm:
npm ls n8n
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls n8n command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-wq64-hcrf-8m56 Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
n8n
|
npm |
|
|
References
Frequently Asked Questions
What is GHSA-wq64-hcrf-8m56?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-wq64-hcrf-8m56?
Is n8n affected?
What CWE is associated with GHSA-wq64-hcrf-8m56?
How can I check npm dependencies for GHSA-wq64-hcrf-8m56?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wq64-hcrf-8m56",
"modified" : "2026-07-22T21:59:47Z",
"published" : "2026-07-22T12:32:17Z",
"withdrawn" : "2026-07-22T21:59:47Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: n8n: Privilege Escalation and Code Execution via Full Public API Key Scope Assignment to Token Exchange JWTs",
"details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-777w-rpr6-c52h. This link is maintained to preserve external references.\n\n## Original Description\n\nn8n 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "n8n"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.29.8"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/n8n-io/n8n/security/advisories/GHSA-777w-rpr6-c52h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-65595"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/n8n-before-privilege-escalation-via-token-exchange"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-269" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-22T21:59:47Z",
"nvd_published_at" : "2026-07-22T12:18:19Z"
}
}