Skip to main content
THREATS • 5 min read

n8n (CVE-2026-119408): How Deprecated n8n Nodes Put Workflow Credentials at Risk

At Copperline Energy, the n8n server syncs meter data and adds context to outage tickets. The automation team has kept it on an older release because changes to those workflows take time to approve.

Then a security review puts a new question to the team: what can someone reach with an ordinary workflow editing account?

Copperline is the fictional utility in our TryHackMe room on CVE-2026-119408. On affected versions of n8n, a signed-in user who can create or change workflows can use deprecated code nodes to run JavaScript in the main application process.

VulnCheck, the CVE Numbering Authority, rates the flaw 8.7 (High) under CVSS 4.0.

A patch is available. It changes what n8n will let users save, while workflows that already contain the affected nodes can keep running. If you look after a self-hosted instance, that difference tells you what to fix first and what to check afterwards.

Where the workflow code runs

In n8n, a node is one step in a workflow. Some nodes run JavaScript to transform data or handle logic specific to an integration. The modern Code node can delegate that work to a task runner, which separates workflow code execution from the main application process.

Three older nodes took a different route. The n8n security advisory identifies Function, Function Item and LangChain Code. The first two used a JavaScript sandbox called vm2 inside the main process.

LangChain Code ran user code in the main process. The flaw gave a user with workflow permissions a way to execute code in that process, outside the isolation provided by task runners.

Those nodes had been taken out of the editor’s picker, but the application still understood them. That made sense for compatibility with older workflows. It also left a path that a review of the editor alone could miss.

For exposure, check the running release and who can create, edit or import workflows. An administrator account is unnecessary if a member already has the relevant permissions.

Why the instance key matters

n8n often has credentials for several services. An instance might use one token to open help desk tickets and another to read from a database. A user may be allowed to edit a single workflow while the application process itself has access to much more.

That separation is key because n8n encrypts stored credentials with an instance key.

If code running in the application’s context can read that key, the risk extends to encrypted credential records the attacker can also obtain. The scope in another system then depends on what the relevant credential permits there.

In an investigation, establish which secrets may have been exposed, then check what those identities actually did in the connected services.

hands-on training
Take the investigation to Copperline

Escape the n8n vm2 sandbox through a deprecated code node, steal the encryption key, then patch.

Explore n8n: CVE-2026-119408

What the n8n patch changes

The fix shipped on the 2.42 line in n8n 2.42.6 on 9 October 2026. Use the vendor advisory and the CVE record’s version ranges to match your running release to a supported update. These are the relevant release thresholds for this flaw:

Running release Patch decision
Below 2.42.6 Move to 2.42.6 or a supported later release with the fix.
2.43.0 to 2.43.2 Update to 2.43.3 or a supported later release with the fix.
2.44.x The vendor includes 2.44.0 among the releases with the fix.
3.0.0 Update to 3.0.1 or a supported later release with the fix.

The patch blocks saves that add or modify the deprecated nodes by default. It lets previously saved workflows that use them keep running. Plan to replace those steps with the supported Code node and test the updated workflows in staging.

Check for configuration overrides that disable the block, then verify the running version and configuration after deployment.

If an upgrade has to wait, follow the advisory’s temporary measures: exclude the affected node types and limit workflow creation and editing to trusted users. Check what those changes would interrupt and agree a patch date with the service owner.

What to look for in a workflow review

  • Check the definitions. Review saved workflows for all three affected node types. Use ownership and change history to tell expected legacy use from changes that need investigation.
  • Put the events in order. Correlate the available workflow change records with execution history and identity activity. A rejected save records an attempt to write a workflow. Look for independent evidence before concluding that code ran.
  • Follow the connected identities. If there is reason to suspect secret exposure, check the logs of the services those credentials can access. Use your incident response process to preserve evidence, restrict further access and plan credential rotation with the relevant owners.

Your evidence will depend on what the instance was configured to retain. A short execution history may leave the older part of the timeline unanswered.

Record the period the logs cover and which systems you checked. That gives the next analyst a clear place to pick up the investigation.

Take the investigation to Copperline

In the TryHackMe room, Copperline’s fictional production instance runs 2.42.5 and its staging counterpart runs 2.42.6.

Comparing the two gives you a way to see where the isolation boundary fails and where the patched release intervenes. You examine the implications for the lab’s instance secret, then review the workflow evidence and decide how to close the exposure.

The room is medium difficulty and suited to practitioners who already use browser developer tools and a terminal.

It gives penetration testers a way to reason about code isolation and gives SOC analysts a case to practice scoping. The room introduces the n8n concepts as you need them.

When you finish, write the handoff you’d want Copperline’s automation owner to receive: which release needs attention, what to review after patching and what evidence would make you widen the investigation.

hands-on training
Take the investigation to Copperline

Escape the n8n vm2 sandbox through a deprecated code node, steal the encryption key, then patch.

Explore n8n: CVE-2026-119408
Ayomide Joseph A.
Nov 23, 2026

Recommended

Get more insights, news, and assorted awesomeness around cyber training.

Business • 7 min read

How to Measure Whether AI Is Reducing SOC Workload

For SOC leaders, a productivity claim should answer a straightforward question: how much work has the team actually stopped doing, and what has happened to the time saved?

Business • 6 min read

After Automated Containment, What Still Needs to Be Investigated?

A response tool may acknowledge an isolation request before the operation has taken effect. Even a confirmed isolation can leave some communications permitted under the configured policy.

6 min read

Farrah McManus on life in the SOC, and working alongside AI

Join over 640 organisations upskilling their
workforce with TryHackMe