Skip to main content
VulnerabilityPublished

CVE-2026-27498: n8n · Code Injection

Affects n8nSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
9.0Critical
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
n8n-ion8nAffected
  • >=2.0.0 <2.2.0
Fixed in
  • 2.2.0
n8n-ion8nAffected
  • <1.123.8
Fixed in
  • 1.123.8
npmn8n-io/n8npkg:npm/n8n-io/n8nOther threatsAffected
  • <1.123.8
Fixed in
  • 1.123.8

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. 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.
  2. Restrict workflow creation and editing permissions strictly to fully trusted and vetted users to minimize the risk of malicious workflow injection.
  3. 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.
  4. Implement strong authentication mechanisms, including multi-factor authentication, to reduce the risk of compromised user credentials.
  5. Monitor workflow changes and git operations within n8n for suspicious activity or unauthorized modifications.
  6. Conduct regular audits of user permissions and workflow configurations to detect potential abuse.
  7. Isolate the n8n host in a segmented network zone with limited access to critical infrastructure to contain potential exploitation impact.
  8. 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

Community reviews

Loading reviews…