Skip to content
CriticalVulnerability

GHSA-62r4-hw23-cc8v: n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node

Published
Record updated
View JSON
Affected
  • n8n >= 1.0.0, < 2.0.0
Fixed in
2.0.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
9.9%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

A sandbox bypass in n8n's Pyodide-based Python Code Node lets an authenticated user who can create or modify workflows run arbitrary commands on the host, with the same privileges as the n8n process. n8n version 1.111.0 introduced an optional task-runner-based native Python implementation with stronger isolation, and it became the default in version 2.0.0.

Mitigation

Fixed in n8n 2.0.0, where the task-runner-based native Python implementation becomes the default. Earlier versions can opt in by setting N8N_RUNNERS_ENABLED and N8N_NATIVE_PYTHON_RUNNER. Workarounds: disable the Code Node with NODES_EXCLUDE set to ["n8n-nodes-base.code"], or disable Python support with N8N_PYTHON_ENABLED=false (introduced in 1.104.0).