CVE-2026-65599n8n before 1.123.64, 2.29.8, and 2.30.1 Credential Exposure via JWT Header
n8n versions before 1.123.64, 2.29.8, and 2.30.1 contain a credential exposure vulnerability: when configured with a Google Service Account key, the full PEM private key was mistakenly placed in the JWT header's kid field (intended only for a key identifier). Because JWT headers are Base64-encoded rather than encrypted, the private key could be recovered by anything that logged or inspected the JWT. An attacker who obtained the key could impersonate the service account and access or modify any Google Cloud resource it was authorized to use. Only instances using Google Service Account credentials are affected.
What to do
Fixed builds are available from npm: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| npm library | n8n | Fixed | 2.29.8 | GHSA-9r8p-h6cc-6qhm |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- n8n-io n8n: affected: before 1.123.64, 1.123.64 not affected; fixed in
1.123.64 - n8n-io n8n: affected: 2.30.0 to before 2.30.1, 2.30.1 not affected; fixed in
2.30.1 - n8n-io n8n: affected: 2.0.0-rc.0 to before 2.29.8, 2.29.8 not affected; fixed in
2.29.8
Vendor advisories:
- https://github.com/n8n-io/n8n/security/advisories/GHSA-9r8p-h6cc-6qhm (vendor-advisory)
References
- https://github.com/n8n-io/n8n/security/advisories/GHSA-9r8p-h6cc-6qhm
- https://www.vulncheck.com/advisories/n8n-before-credential-exposure-via-jwt-header
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.