The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Tuesday, 24 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

n8n flaw CVE-2026-126391 lets workflow editors run code

By The Daily Byte ·23 Nov 2026 ·3 min read
The n8n logo, the workflow automation platform affected by CVE-2026-126391

Workflow automation platform n8n has patched a high-severity flaw that lets a logged-in user who can edit workflows escape the expression sandbox and run code on the n8n host. The vulnerability, tracked as CVE-2026-126391, carries a CVSS score of 7.7 and affects n8n versions before 1.123.89, as well as the 2.x and 3.x lines. Anyone running a self-hosted n8n instance where more than one person can build workflows should update now, because the host holds the credentials for every system the workflows touch.

The flaw sits in how n8n evaluates workflow expressions. According to the maintainers' security advisory, an attacker with permission to create or modify workflows can craft expressions that reference unexpected JavaScript properties, breaking out of the sandbox that is supposed to confine expression code. Once outside it, the attacker can execute arbitrary code on the server running n8n. The weakness is classed as CWE-94, improper control of code generation.

Which versions are affected

The CVE record lists four affected lines. Versions before 1.123.89 are affected, along with 2.0.0 up to 2.45.5, 2.46.0 up to 2.46.1, and 3.0.0 up to 3.0.1. Fixes are available in 1.123.89, 2.45.5, 2.46.1 and 3.0.1. The CVE was published on 13 November 2026 and the record was last revised on 20 November 2026, which is when vulnerability scanners began flagging it widely. There is no known exploitation in the wild, and no public exploit has been found, but the flaw is network-reachable and needs no user interaction beyond the attacker's own login.

The risk is greatest on shared instances. A single n8n host commonly stores API keys, database passwords and cloud credentials for dozens of connected services, so code execution on the host can expose the encryption key and with it every stored credential. Rapid7's vulnerability database rates the flaw 7.7 under CVSS 4.0 and 7.5 under CVSS 3.1, noting that low-privilege access is required but no user interaction is needed.

What to do

Upgrade to the fixed release for the branch you run: 1.123.89, 2.45.5, 2.46.1 or 3.0.1. If you cannot patch immediately, restrict workflow editing to fully trusted users, remove global member access from anyone untrusted, and audit existing workflows for expressions that reference unexpected JavaScript properties. The maintainers also published a second batch of fixes on 28 October 2026 covering deprecated code nodes and a GraphicsMagick issue in the Docker image, so instances that have not been updated since October carry more than one known flaw. Support for the 1.x line ends on 31 December 2026.

Frequently asked questions

What is CVE-2026-126391? A high-severity sandbox-escape flaw in n8n's workflow expression evaluation that lets an authenticated user with workflow-editing rights run code on the n8n host.

Which n8n versions are affected? Versions before 1.123.89, 2.0.0 before 2.45.5, 2.46.0 before 2.46.1, and 3.0.0 before 3.0.1.

Is CVE-2026-126391 being exploited? No exploitation has been reported and no public exploit is available, according to the vulnerability databases tracking the flaw as of 23 November 2026.

How do I fix it? Upgrade to 1.123.89, 2.45.5, 2.46.1 or 3.0.1, matching the branch you run.

Source: n8n, via the official security advisory GHSA-gx3v-3x3v-f8r5. Second source: Rapid7 vulnerability database.