Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. n8n
  4. ›
  5. CVE-2026-42227

CVE-2026-42227: n8n has Public API Variables IDOR that Allows Cross-Project Secret Disclosure

April 29, 2026 (updated May 8, 2026)

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.

References

  • github.com/advisories/GHSA-756q-gq9h-fp22
  • github.com/n8n-io/n8n
  • github.com/n8n-io/n8n/security/advisories/GHSA-756q-gq9h-fp22
  • nvd.nist.gov/vuln/detail/CVE-2026-42227

Code Behaviors & Features

Detect and mitigate CVE-2026-42227 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.123.32, all versions starting from 2.0.0 before 2.17.4, all versions starting from 2.18.0 before 2.18.1

Fixed versions

  • 1.123.32
  • 2.18.1
  • 2.17.4

Solution

Upgrade to versions 1.123.32, 2.17.4, 2.18.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-639: Authorization Bypass Through User-Controlled Key

Source file

npm/n8n/CVE-2026-42227.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:52 +0000.