{"id":"CVE-2026-59259","aliases":["CVE-2026-59259","GHSA-jp7m-xcgx-57qm"],"related":[],"kind":"vulnerability","state":"published","title":"n8n - Permission Bypass via Expression Parser Mismatch in External Secrets","summary":"n8n before versions 1.123.61, 2.27.4, and 2.28.1 contains a permission bypass vulnerability in external secrets handling caused by 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 can embed external secret references into credentials in forms the static validation does not detect; these references resolve at workflow execution time, exposing secret values the user is not authorized to access. This issue only affects instances where an external secrets provider is configured and Advanced Permissions are in use.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"n8n before versions 1.123.61, 2.27.4, and 2.28.1 contains a permission bypass vulnerability in external secrets handling caused by 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 can embed external secret references into credentials in forms the static validation does not detect; these references resolve at workflow execution time, exposing secret values the user is not authorized to access. This issue only affects instances where an external secrets provider is configured and Advanced Permissions are in use.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"n8n antes de las versiones 1.123.61, 2.27.4 y 2.28.1 contiene una vulnerabilidad de omisión de permisos en el manejo de secretos externos causada por una falta de coincidencia entre la verificación de validación estática y el motor de expresiones en tiempo de ejecución. Un usuario autenticado con permisos de creación o actualización de credenciales pero sin el ámbito externalSecret:list puede incrustar referencias a secretos externos en credenciales en formas que la validación estática no detecta; estas referencias se resuelven en tiempo de ejecución del flujo de trabajo, exponiendo valores de secretos a los que el usuario no está autorizado a acceder. Este problema solo afecta a las instancias donde un proveedor de secretos externos está configurado y las Permisos Avanzados están en uso.","source":"nvd"}],"published":"2026-07-15T11:25:35.530Z","modified":"2026-10-29T21:16:04.961Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-639"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.123.61","status":"affected"},{"type":"semver","version":"1.123.61","status":"unaffected"}],"vendor":"n8n","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.28.0","fixed":"2.28.1","status":"affected"},{"type":"semver","version":"2.28.1","status":"unaffected"}],"vendor":"n8n","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0-rc.0","fixed":"2.27.4","status":"affected"},{"type":"semver","version":"2.27.4","status":"unaffected"}],"vendor":"n8n","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.123.61"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.28.0","status":"affected","fixed":"2.28.1"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0-rc.0","status":"affected","fixed":"2.27.4"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.123.61"},{"status":"affected","introduced":"2.0.0","fixed":"2.27.4"},{"status":"affected","version":"2.28.0"},{"status":"affected","version":"2.28.0"}],"vendor":"n8n","product":"n8n","cpe":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-jp7m-xcgx-57qm","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/n8n-permission-bypass-via-expression-parser-mismatch-in-external-secrets","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59259","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.61","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.27.4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n@2.28.1","tags":["web"],"sources":["ghsa"]}],"credits":["YLChen-007"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-15T18:47:30.436Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59259","url":"https://www.cve.org/CVERecord?id=CVE-2026-59259","licence":"CVE Terms of Use","modified":"2026-10-29T21:16:04.961Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jp7m-xcgx-57qm","url":"https://github.com/advisories/GHSA-jp7m-xcgx-57qm","licence":"CC-BY-4.0","modified":"2026-07-22T22:31:05.997Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59259","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59259","licence":"Public domain","modified":"2026-10-29T19:17:25.023Z"}],"updatedAt":"2026-11-25T22:59:28.267Z","epss":{"score":0.00385,"percentile":0.34711,"date":"2026-12-01T12:00:22.000Z"}}