{"cve":"CVE-2026-65595","nvd":{"published":"2026-07-22T12:18:19.660","modified":"2026-10-24T17:10:00.220","status":"Analyzed","description":"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.","cvss_v4":{"vector":"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","score":8.9},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-269"],"references":["https://github.com/n8n-io/n8n/security/advisories/GHSA-777w-rpr6-c52h","https://www.vulncheck.com/advisories/n8n-before-privilege-escalation-via-token-exchange"],"products":["n8n:n8n"],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-65595","score":0.00693,"percentile":0.52626,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-777w-rpr6-c52h","url":"https://osv.dev/vulnerability/GHSA-777w-rpr6-c52h","summary":"n8n: Privilege Escalation and Code Execution via Full Public API Key Scope Assignment to Token Exchange JWTs","modified":"2026-07-22T22:26:48.245542Z","packages":[{"ecosystem":"npm","name":"n8n","purl":"pkg:npm/n8n","ranges":[">=2.30.0 <2.30.1"],"fixed":["2.30.1"]},{"ecosystem":"npm","name":"n8n","purl":"pkg:npm/n8n","ranges":["<2.29.8"],"fixed":["2.29.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}