Authorization Bypass Through User-Controlled Key Affecting @n8n/db package, versions <1.17.2>=1.18.0 <1.18.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authorization Bypass Through User-Controlled Key vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-N8NDB-16351626
  • published3 May 2026
  • disclosed29 Apr 2026
  • creditnkoorty, jjjutla

Introduced: 29 Apr 2026

NewCVE-2026-42227  (opens in a new tab)
CWE-639  (opens in a new tab)

How to fix?

Upgrade @n8n/db to version 1.17.2, 1.18.1 or higher.

Overview

Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key via the variables API endpoint when an authenticated user with a valid API key scoped to variable:list supplies an arbitrary projectId query parameter. An attacker can access sensitive variables in projects they are not members of by bypassing project membership checks.

Note: This is only exploitable if the deployment is a team instance with multiple projects and the variables feature is enabled.

Workaround

This vulnerability can be mitigated by restricting access and API key issuance to fully trusted users only, and auditing existing project variables for sensitive values and rotating any secrets that may have been exposed.

CVSS Base Scores

version 4.0
version 3.1