Skip to main content

Improper Control of Generation of Code ('Code Injection')

CVE-2026-21877

Severity High
Score 9.9/10

Summary

n8n is affected by an authenticated Remote Code Execution (RCE) vulnerability. Under certain conditions, an authenticated user may be able to cause untrusted code to be executed by the n8n service. This could result in full compromise of the affected instance. Both self-hosted and n8n Cloud instances are impacted. Versions from 0.123.0 prior to 1.121.3 are affected. Users are advised to upgrade to version 1.121.3 or later to fully address the vulnerability. If upgrading is not immediately possible, administrators can reduce exposure by disabling the Git node and limiting access for untrusted users. The package 'n8n-core' is also affected from version 1.79.0 prior to 1.120.2 and 1.121.0.

  • LOW
  • NETWORK
  • HIGH
  • CHANGED
  • NONE
  • LOW
  • HIGH
  • HIGH

CWE-94 - Code Injection

Code injection is a type of vulnerability that allows an attacker to execute arbitrary code. This vulnerability fully compromises the machine and can cause a wide variety of security issues, such as unauthorized access to sensitive information, manipulation of data, denial of service attacks etc. Code injection is different from command injection in the fact that it is limited by the functionality of the injected language (e.g. PHP), as opposed to command injection, which leverages existing code to execute commands, usually within the context of a shell.

Advisory Timeline

  • Published