{"id":"CVE-2026-59259","aliases":["GHSA-jp7m-xcgx-57qm"],"title":"n8n: External Secrets Permission Bypass via Expression Parser Mismatch","summary":"n8n: External Secrets Permission Bypass via Expression Parser Mismatch","severity":"medium","cwe":["CWE-639"],"vendor":"n8n","product":"n8n","ecosystem":"npm","affected":["n8n < 1.123.61","n8n >= 2.28.0, < 2.28.1","n8n >= 2.0.0-rc.0, < 2.27.4"],"patched":["n8n 1.123.61","n8n 2.28.1","n8n 2.27.4"],"published":"2026-07-22","updated":"2026-07-22","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-jp7m-xcgx-57qm","references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-jp7m-xcgx-57qm"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59259"},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.61"},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.27.4"},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.28.1"},{"url":"https://www.vulncheck.com/advisories/n8n-permission-bypass-via-expression-parser-mismatch-in-external-secrets"},{"url":"https://github.com/advisories/GHSA-jp7m-xcgx-57qm"}],"tags":["ghsa","npm"],"epss":0.00438,"epssPercentile":0.37501,"ingestedAt":"2026-07-22T23:07:32.794Z","slug":"CVE-2026-59259","body":"## Overview\n\n## Impact\nDue to a mismatch between the static validation check and the runtime expression engine, an authenticated user with credential create or update permissions, but without the `externalSecret:list` scope, could embed external secret references into credentials in forms the validation did not detect. These references would resolve at workflow execution time, exposing secret values the user was not authorized to access.\n\nThis issue only affects instances where an external secrets provider is configured and Advanced Permissions are in use.\n\n## Patches\nThe issue has been fixed in n8n versions 1.123.61, 2.27.4, and 2.28.1. Users should upgrade to one of these versions or later to remediate the vulnerability.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Restrict credential creation and update permissions to fully trusted users only.\n- Audit existing credentials for unexpected external secret references.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.\n\n## Affected packages\n\n- `n8n < 1.123.61`\n- `n8n >= 2.28.0, < 2.28.1`\n- `n8n >= 2.0.0-rc.0, < 2.27.4`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `n8n 1.123.61`\n- `n8n 2.28.1`\n- `n8n 2.27.4`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}