A critical n8n flaw has been discovered – here’s how to stay safe

  • CVE-2025-68668 in n8n’s Python Code Node enables arbitrary system command execution
  • Attackers with workflow permissions can bypass Pyodide sandbox, risking malware, data theft, and system compromise
  • Fixed in n8n v1.111.0; v2.0.0 defaults to secure task-runner Python isolation

A critical-severity vulnerability was recently found in n8n, allowing threat actors to run arbitrary code on the underlying system.

n8n is an open-source workflow automation platform that lets users connect apps, APIs, and services to automate tasks without heavy coding. It allows users to to build visual workflows that move data between tools, trigger actions, and run custom logic.

In a security advisory posted on GitHub, it was confirmed that a sandbox bypass vulnerability existed in the Python Code Node that uses Pyodide, a Python runtime for the browser and other JavaScript environments.

Severity of 9.9/10

The flaw allows unauthenticated users with permission to create or modify the workflows to execute arbitrary commands on the host system running n8n, using the same privileges as the n8n process.

It is tracked as CVE-2025-68668, and was given a severity score of 9.9/10 (critical).

In theory, an attacker with a valid account and workflow editing permissions could embed specially crafted Python code into a workflow’s Python Code Node, breaking out of Pyodide and invoking system-level commands. Once arbitrary commands can be run on the host, attackers can deploy malware or backdoors, steal sensitive data, move laterally throughout the network, modify and disrupt workflows, and completely compromise the underlying system.

The vulnerability was fixed in n8n version 1.111.0, with the addition of a task-runner-based native Python implementation that provides “a more secure isolation model.” The implementation was introduced as an optional feature which the users can enable by configuring the N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER environment variables.

This implementation became the default starting with n8n version 2.0.0, it was said in the advisory.

Those that cannot upgrade to the newest version can use some of the available workarounds, including disabling the Code Node, disabling Python support in the Code Node, or configuring n8n to use the task runner based Python sandbox.

Via Cybernews

Follow TechRadar on Google News and add us as a preferred source to get our expert news, reviews, and opinion in your feeds. Make sure to click the Follow button!

And of course you can also follow TechRadar on TikTok for news, reviews, unboxings in video form, and get regular updates from us on WhatsApp too.

Read more @ TechRadar

Latest posts

Meet the tiny AI hologram ready to be your esports coach and life planner

Razer showcased an upgraded Project AVA animated holographic AI assistant at CES this yearProject AVA has a selection of avatars with their own simulated...

How to watch The Traitors US Season 4 — Free Streams From Anywhere

If the Real Housewives can withstand the temptation to slip into their usual dastardly ways, they could run season 4 like a racket, perhaps...

New Paramount+ series Girl Taken will rip your heart out — but its cast think this classic comedy is the perfect way to decompress...

WARNING: spoilers for Girl Taken ahead. From today (January 8), new crime thriller Girl Taken is available to stream globally on Paramount+. Based on...

A new Wolfenstein game is in development according to multiple sources

A new Wolfenstein game is reportedly in development at MachineGamesMultiple sources, including Windows Central and Kotaku, have said as muchNo concrete details have been...

The Pitt season 2 won’t be the popular HBO Max show’s final entry as HBO officially announces its third season

HBO has confirmed The Pitt will get a third seasonThe news dropped ahead of the show's season 2 premiereNo filming start date, cast details,...

Latest Fortnite trailer reveals South Park crossover event with time-limited playlist featuring Cartman and co

South Park is coming to Fortnite on January 9 with a free mini passThe crossover will introduce Outfits for Cartman, Kenny, Stan, Kyle, and...

‘An inexcusable mistake’: Logitech just broke its own macOS apps, but a fix is available

Two of Logitech’s Mac apps stopped working due to expired certificates This broke custom settings for users’ mice and keyboardsPatches have been released that...

This pocket-sized Bluetooth speaker takes aim at the JBL Go 4 — but sadly, 3 key flaws hold it back

Tribit PocketGo: two-minute reviewThe Tribit PocketGo is an ultra-small Bluetooth speaker that comes with an equally small price tag. It’s lightweight, can be easily...

ChatGPT Health is a new space for medical questions that works with your health data — but OpenAI insists it’s not designed to replace...

OpenAI launches ChatGPT Health for dedicated health conversationsYou can securely upload your medical records and connect apps like Apple HealthYou can join the waitlist...

Skullcandy’s new earbuds put AI in your ears –but there’s a catch

New Method 540 ANC earbuds boast improved case and integrated AISkull AI has a two-week free trial – after that, it'll cost $4.99 per monthSkullcandy...