CVE-2026-27498: n8n · Code Injection
Affects n8nSource CVE Database V5
Not known to be exploited · CVSS 9.0 Critical : upgrade to 2.2.0 or 1.123.8 as a priority.
Data as of 29 Oct 2026, 19:04 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 57% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.2.0, 1.123.8
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HExploitation evidence
Disclosed: evidence found.
CVE published 25 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade n8n to 2.2.0 or 1.123.8; n8n-io/n8n to 1.123.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| n8n-ion8n | Affected
| Fixed in
|
| n8n-ion8n | Affected
| Fixed in
|
npmn8n-io/n8npkg:npm/n8n-io/n8nOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Upgrade n8n to version 2.2.0 or later, or 1.123.8 or later, as these versions contain the official fix for CVE-2026-27498.
- Restrict workflow creation and editing permissions strictly to fully trusted and vetted users to minimize the risk of malicious workflow injection.
- Temporarily disable the Read/Write Files from Disk node by adding 'n8n-nodes-base.readWriteFile' to the NODES_EXCLUDE environment variable to reduce the attack surface until an upgrade is possible.
- Implement strong authentication mechanisms, including multi-factor authentication, to reduce the risk of compromised user credentials.
- Monitor workflow changes and git operations within n8n for suspicious activity or unauthorized modifications.
- Conduct regular audits of user permissions and workflow configurations to detect potential abuse.
- Isolate the n8n host in a segmented network zone with limited access to critical infrastructure to contain potential exploitation impact.
- Maintain up-to-date backups of workflows and configuration files to enable recovery in case of compromise. These steps collectively reduce the likelihood and impact of exploitation beyond generic patching advice.
Description
n8n is an open source workflow automation platform. Prior to versions 2.2.0 and 1.123.8, an authenticated user with permission to create or modify workflows could chain the Read/Write Files from Disk node with git operations to achieve remote code execution. By writing to specific configuration files and then triggering a git operation, the attacker could execute arbitrary shell commands on the n8n host. The issue has been fixed in n8n versions 2.2.0 and 1.123.8. Users should upgrade to one of these versions or later to remediate the vulnerability. If upgrading is not immediately possible, administrators should consider the following temporary mitigations. Limit workflow creation and editing permissions to fully trusted users only, and/or disable the Read/Write Files from Disk node by adding `n8n-nodes-base.readWriteFile` to the `NODES_EXCLUDE` environment variable. These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
References
- github.com/n8n-io/n8n/security/advisories/GHSA-x2mw-7j39-93xq (opens in a new tab)
- github.com/n8n-io/n8n/commit/97365caf253978ba8e46d7bc53fa7ac3b6f67b32 (opens in a new tab)
- github.com/n8n-io/n8n/commit/e22acaab3dcb2004e5fe0bf9ef2db975bde61866 (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@1.123.8 (opens in a new tab)
- github.com/n8n-io/n8n/releases/tag/n8n@2.2.0 (opens in a new tab)