GHSA-mhvh-gwhr-76pw: Duplicate Advisory Google Service Account Private Key Vulnerability
MODERATEGHSA-mhvh-gwhr-76pw is a MODERATE google service account private key vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Duplicate Advisory libraries in the npm ecosystem. The issue involves google service account private key exposed in jwt header. Remediation is available in the latest vendor maintenance releases.
GHSA-mhvh-gwhr-76pw at a Glance
How to Fix GHSA-mhvh-gwhr-76pw
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-mhvh-gwhr-76pw, 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-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. 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-mhvh-gwhr-76pw Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
n8n
|
npm |
|
|
References
Frequently Asked Questions
What is GHSA-mhvh-gwhr-76pw?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-mhvh-gwhr-76pw?
Is n8n affected?
What CWE is associated with GHSA-mhvh-gwhr-76pw?
How can I check npm dependencies for GHSA-mhvh-gwhr-76pw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mhvh-gwhr-76pw",
"modified" : "2026-07-22T17:59:48Z",
"published" : "2026-07-22T12:32:18Z",
"withdrawn" : "2026-07-22T17:59:48Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Google Service Account Private Key Exposed in JWT Header",
"details" : "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-9r8p-h6cc-6qhm. This link is maintained to preserve external references.\n\n## Original Description\nn8n 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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/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" : "< 1.123.64"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/n8n-io/n8n/security/advisories/GHSA-9r8p-h6cc-6qhm"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-65599"
}, {
"type" : "WEB",
"url" : "https://www.vulncheck.com/advisories/n8n-before-credential-exposure-via-jwt-header"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-312" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-22T17:59:48Z",
"nvd_published_at" : "2026-07-22T12:18:20Z"
}
}