Description
n8n is an open source workflow automation platform. Prior to 1.123.43, 2.22.1, and 2.20.7, an attacker with write access to the git repository connected to an n8n Source Control configuration could commit a malicious Data Table JSON file containing a crafted column name. When an administrator performed a Source Control Pull, n8n imported the file and could lead to SQL injection on the internal PostgreSQL instance. Exploitation requires the n8n instance uses PostgreSQL as its database backend, the Source Control feature is enabled and connected to a repository the attacker can write to, and an administrator triggers a Source Control Pull. This vulnerability is fixed in 1.123.43, 2.22.1, and 2.20.7.
Published: 2026-06-23
Score: 8.9 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An attacker with write access to the git repository connected to an n8n Source Control configuration can commit a malicious Data Table JSON file that contains a crafted column name. When an administrator performs a Source Control Pull, n8n imports the file and constructs an SQL statement using that column name, which can result in SQL injection on the internal PostgreSQL instance. This allows the attacker to read, modify, or delete data in the database, or potentially elevate privileges. The flaw affects n8n versions prior to 1.123.43, 2.22.1, and 2.20.7, and requires that the instance uses PostgreSQL as its database backend.

Affected Systems

The vulnerability affects n8n versions prior to 1.123.43, 2.22.1, and 2.20.7. Any instance running those releases with the Source Control feature enabled, connected to a repository the attacker can write to, and using PostgreSQL as its database backend is susceptible.

Risk and Exploitability

The CVSS score of 8.9 indicates high severity, and the vulnerability is not listed in CISA’s KEV catalog. Although the EPSS score is not available, the required conditions—write access to a Source Control repository, the feature being enabled, and an administrator triggering a pull—are sufficiently tangible to make exploitation plausible. The attack vector is internal to the n8n instance, but an attacker with repository write privileges can manipulate the system without needing direct access to the server.

Generated by OpenCVE AI on June 24, 2026 at 07:33 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade n8n to version 1.123.43 or newer, 2.22.1, or 2.20.7;
  • Restrict write access to the connected git repository to trusted users only;
  • Disable the Source Control feature on vulnerable instances until the patch is applied.

Generated by OpenCVE AI on June 24, 2026 at 07:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-mhrx-qhrj-673w n8n Has a Source Control Pull SQL Injection
History

Tue, 23 Jun 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 23 Jun 2026 16:45:00 +0000

Type Values Removed Values Added
Description n8n is an open source workflow automation platform. Prior to 1.123.43, 2.22.1, and 2.20.7, an attacker with write access to the git repository connected to an n8n Source Control configuration could commit a malicious Data Table JSON file containing a crafted column name. When an administrator performed a Source Control Pull, n8n imported the file and could lead to SQL injection on the internal PostgreSQL instance. Exploitation requires the n8n instance uses PostgreSQL as its database backend, the Source Control feature is enabled and connected to a repository the attacker can write to, and an administrator triggers a Source Control Pull. This vulnerability is fixed in 1.123.43, 2.22.1, and 2.20.7.
Title n8n: Source Control Pull SQL Injection
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 8.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-23T17:44:07.800Z

Reserved: 2026-05-07T19:20:44.692Z

Link: CVE-2026-44792

cve-icon Vulnrichment

Updated: 2026-06-23T17:44:03.673Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T07:45:04Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')