Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess log aggregation system or network traffic
-
DeliveryCapture JWT emitted by n8n toward Google APIs
-
ExploitBase64url-decode JWT header
-
ExecutionExtract full PEM private key from kid field
-
PersistAuthenticate to Google Cloud as service account
-
ImpactAccess or modify authorized GCP resources
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V14 - Data Protection Encrypted storage of sensitive data
|
| Exploitation Conditions | Two specific prerequisites must both be met. First, at least one Google Service Account credential (a Google Service Account JSON key file) must have been configured and actively used within the n8n instance - deployments using only other credential types are not affected. Second, the attacker must have access to a channel where JWTs are observable: application log files, a log aggregation or SIEM platform ingesting n8n logs, HTTP proxy or network capture of traffic between n8n and Google APIs, or any monitoring tool recording outbound Authorization headers. Unauthenticated remote exploitation against n8n's network interface is not possible without also having one of these log or traffic access positions. Limiting factors include: the attacker must already hold elevated access within the environment (to logs or network monitoring), and scope of downstream damage is bounded by the IAM permissions granted to the specific service account in use. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:L/SA:L) reflects two competing forces. PR:H acknowledges that an attacker must occupy a privileged position - log access, a network tap, or access to a monitoring/SIEM system - to intercept the JWT. AT:P captures the specific configuration prerequisite: Google Service Account credentials must be in use. Together these limit the exposure significantly from a remote-unauthenticated-exploitation standpoint. However, the SC:H subsequent-system impact correctly flags that once the private key is in hand, the blast radius is determined entirely by the permissions granted to the service account in Google Cloud IAM, which can be substantial. The nominal base score of 5.1 therefore understates real-world risk in environments where the service account holds broad GCP permissions. EPSS data was not supplied in the input. KEV status is negative, indicating no confirmed mass exploitation. The practical threat model is an insider, a compromised log aggregation pipeline, or an attacker who has already achieved partial access to the environment and is seeking lateral movement to Google Cloud. |
| Exploit ScenarioDerived | An attacker with read access to a centralized log aggregation system (e.g., Splunk, ELK, or CloudWatch Logs) that ingests n8n application logs captures a JWT emitted during a Google API call. The attacker Base64url-decodes the JWT header using any standard tool or online decoder, reads the full PEM private key from the kid field, then uses the key with the Google Cloud SDK or API client libraries to authenticate as the service account and enumerate or exfiltrate data from authorized GCP resources such as Cloud Storage buckets, BigQuery datasets, or Secret Manager entries. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Credential exposure in n8n workflow automation platform leaks full Google Service Account PEM private keys into the JWT header's kid field, where they are trivially recoverable via Base64 decoding. Affected versions span both the 1.x line (before 1.123.64) and the 2.x line (before 2.29.8 and 2.30.1), but only deployments configured with Google Service Account credentials are at risk. An attacker who captures these JWTs from logs, network traffic, or monitoring systems can extract the raw private key and fully impersonate the service account against any Google Cloud resource it is authorized to access. No public exploit code has been identified at time of analysis, and no confirmed active exploitation is recorded in CISA KEV.
RemediationAI
Upgrade n8n to version 1.123.64 or later for 1.x deployments, or to 2.29.8 or 2.30.1 or later for 2.x deployments; these versions are confirmed as patched releases per the vendor security advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-9r8p-h6cc-6qhm. After upgrading, treat all Google Service Account keys that were in use during the affected period as compromised: immediately rotate the key in Google Cloud IAM Console, audit Google Cloud Audit Logs for any API calls made under the service account during the exposure window, and revoke the old key. As a compensating control before patching, restrict filesystem and platform access to n8n application logs, configure log aggregation systems (Splunk, ELK, Datadog) to redact JWT Authorization headers, and limit network visibility of traffic between n8n and Google APIs - note that these controls reduce exposure but do not eliminate the key from existing stored logs and do not fix the underlying bug.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is an open-source, self-hostable workflow automation platform (CPE: cpe:2.3:a:n8n-io:n8n) that supports Google Cloud integrations via Service Account credentials. Google Service Accounts authenticate using RSA private keys in PEM format. The vulnerable code path incorrectly populated the JWT kid (Key ID) header parameter with the full PEM private key material rather than an opaque key identifier string as specified by RFC 7515. Because JWT headers are only Base64url-encoded - not encrypted or integrity-protected against observers - any system that logs or inspects the JWT header can trivially recover the raw private key by decoding the kid field. CWE-312 (Cleartext Storage of Sensitive Information) directly describes this root cause: sensitive key material was placed in a transmission field that provides no confidentiality guarantees. The bug likely arose from passing the key object itself to a field that expected a key reference string, a common developer error at the boundary between cryptographic key management and JWT construction libraries.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:L/SA:L
PR:H because log or traffic access is required; S:C and C:H reflect full private key disclosure enabling GCP service account impersonation; I:L for indirect modification potential via impersonation.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
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
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
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
EUVD-2026-47643
GHSA-9r8p-h6cc-6qhm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB