{"id":"GHSA-mhrx-qhrj-673w","revision":"0f6eb8787f4e431dbabed9532e9a38c2","records":[{"revision":"0f6eb8787f4e431dbabed9532e9a38c2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-mhrx-qhrj-673w","aliases":["CVE-2026-44792"],"title":"n8n Has a Source Control Pull SQL Injection","description":"## Impact\nAn 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.\n\nExploitation requires all of the following conditions:\n- The n8n instance uses PostgreSQL as its database backend.\n- The Source Control feature is enabled and connected to a repository the attacker can write to.\n- An administrator triggers a Source Control Pull.\n\n## Patches\nThe issue has been fixed in n8n version 1.123.43, 2.20.7, and 2.21.1. Users should upgrade to this version or later to remediate the vulnerability.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Disable the Source Control feature if it is not actively required.\n- Restrict write access to the connected git repository to fully trusted users only.\n- Avoid pulling from repositories that may have been modified by untrusted parties.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","state":0,"publishedAt":"2026-05-14T16:18:00+00:00","modifiedAt":"2026-07-20T13:45:33.7871859+00:00","affected":[{"ecosystem":"npm","name":"n8n","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.123.43"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"n8n","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.21.0"},{"kind":"fixed","version":"2.21.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"n8n","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0-rc.0"},{"kind":"fixed","version":"2.20.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":null,"severity":null},{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/n8n-io/n8n/security/advisories/GHSA-mhrx-qhrj-673w","https://nvd.nist.gov/vuln/detail/CVE-2026-44792","https://github.com/n8n-io/n8n"],"sourceUrl":"https://github.com/advisories/GHSA-mhrx-qhrj-673w","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mhrx-qhrj-673w","identifiers":["GHSA-mhrx-qhrj-673w","CVE-2026-44792"]},"retained":false,"historicalAffected":[]}],"coverage":[]}