CVE-2026-42227
JSON

6.0medium

n8n: Public API Variables IDOR Allows Cross-Project Secret Disclosure

Severity
6.0medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-756q-gq9h-fp22

Description

n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, an authenticated user with a valid API key scoped to variable:list could read variables from projects they are not a member of by supplying an arbitrary projectId query parameter to the public API variables endpoint. The handler queried the variables repository directly without enforcing project membership checks, bypassing the authorization-aware service layer used by the internal enterprise controller. If variables were misused to store sensitive information such as credentials or tokens, they should be rotated immediately. This issue only affects licensed enterprise or team deployments with multiple projects and the variables feature enabled. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.

Affected

Product or packageVersionsReported by
n8n-io n8n< 1.123.32, >= 2.17.0, < 2.17.4, >= 2.18.0, < 2.18.1CVE List
n8n (npm)before 1.123.32, from 2.18.0 before 2.18.1, from 2.0.0 before 2.17.4GitHub Advisory Database
n8n n8nbefore 1.123.32, from 2.17.0 before 2.17.4, 2.18.0NVD

All scores

GitHub_M6.0medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
GitHub7.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-639

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, an authenticated user with a valid API key scoped to variable:list could read variables from projects they are not a member of by supplying an arbitrary projectId query parameter to the public API variables endpoint. The handler queried the variables repository directly without enforcing project membership checks, bypassing the authorization-aware service layer used by the internal enterprise controller. If variables were misused to store sensitive information such as credentials or tokens, they should be rotated immediately. This issue only affects licensed enterprise or team deployments with multiple projects and the variables feature enabled. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.

GitHub Advisory Database

Impact

An authenticated user with a valid API key scoped to variable:list could read variables from projects they are not a member of by supplying an arbitrary projectId query parameter to the public API variables endpoint. The handler queried the variables repository directly without enforcing project membership checks, bypassing the authorization-aware service layer used by the internal enterprise controller.

If variables were misused to store sensitive information such as credentials or tokens, they should be rotated immediately.

This issue only affects licensed enterprise or team deployments with multiple projects and the variables feature enabled.

Patches

The issue has been fixed in n8n versions 1.123.32, 2.17.4, and 2.18.1. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict n8n access and API key issuance to fully trusted users only.
  • Audit existing project variables for sensitive values and rotate any secrets that may have been exposed.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

NVD (es)

n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de las versiones 1.123.32, 2.17.4 y 2.18.1, un usuario autenticado con una clave API válida con ámbito para variable:list podía leer variables de proyectos de los que no era miembro al proporcionar un parámetro de consulta projectId arbitrario al endpoint público de variables de la API. El gestor consultaba directamente el repositorio de variables sin aplicar comprobaciones de membresía del proyecto, eludiendo la capa de servicio consciente de la autorización utilizada por el controlador empresarial interno. Si las variables se utilizaron indebidamente para almacenar información sensible como credenciales o tokens, deben rotarse inmediatamente. Este problema solo afecta a implementaciones empresariales o de equipo con licencia que tienen múltiples proyectos y la función de variables habilitada. Este problema ha sido parcheado en las versiones 1.123.32, 2.17.4 y 2.18.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42227 changed 2026-05-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-756q-gq9h-fp22 changed 2026-05-08CC-BY-4.0
NVDCVE-2026-42227 changed 2026-11-11Public domain