CVE-2026-59254

n8n - External Secrets Disclosure via Workflow Node Expressions

Published Jul 15, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
n8n before 2.28.1 contains an information disclosure vulnerability where external secrets are incorrectly resolved in workflow node expressions outside credentials scope. Authenticated project editors can read plaintext external secret values by referencing them in node expressions without requiring explicit secrets access permissions.

Analysis

AI-generated

Technical impact

The flaw lies in the way n8n evaluates node expressions, allowing an authenticated user with project editor rights to reference an external secret that is linked to the organization or a different project. Because the expression evaluation does not enforce secret scoping, the secret value is returned in plaintext in the workflow execution result. This information disclosure can reveal credentials, tokens, API keys, or any other confidential data that the external secret contains. The weakness is a classic case of improper authorization (CWE-639).

Affected Systems

Installed copies of the n8n workflow automation platform running any version earlier than 2.28.1 are vulnerable. The vulnerability exists in the core expression evaluator that processes node expressions in all workflow types, regardless of the workflow type or the type of node used.

Risk and Exploitability

A CVSS score of 6.3 indicates moderate severity, and the EPSS score of less than 1% shows a low likelihood that attackers will target this flaw. The vulnerability is not listed in the CISA KEV catalog. Successful exploitation requires an attacker to be authenticated as a project editor and to modify or read a workflow that references an external secret; no privilege escalation or remote code execution is involved, so the impact is confined to the disclosure of sensitive data that the project editor can actually read.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade n8n to version 2.28.1 or later to apply the vendor fix.
  • If an upgrade cannot be performed immediately, remove or restrict the use of external secret references in node expressions for project editors.
  • Audit all existing workflows for hidden or unintended secret references and remediate them promptly.
  • Regenerate or rotate any external secrets that may have been exposed to limit potential compromise.

Generated by OpenCVE AI on July 31, 2026 at 04:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2434-3x6q-8r99 n8n: External Secrets Accessible via Workflow Expressions Outside Credentials
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description n8n before 2.28.1 contains an information disclosure vulnerability where external secrets are incorrectly resolved in workflow node expressions outside credentials scope. Authenticated project editors can read plaintext external secret values by referencing them in node expressions without requiring explicit secrets access permissions.
Title n8n - External Secrets Disclosure via Workflow Node Expressions
First Time appeared N8n
N8n n8n
Weaknesses CWE-639
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:enterprise:node.js:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:16 PM
Reserved
Jul 4, 2026, 12:17 PM
Status
Deferred
Published
Jul 15, 2026, 12:18 PM
Modified
Oct 29, 2026, 7:17 PM