Skip to content
CriticalVulnerability

GHSA-8398-gmmx-564h: n8n has a Python sandbox escape

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

Summary

An authenticated user can break out of the Python sandbox in the n8n Python Code node and execute code outside its intended security boundary. The issue affects deployments with N8N_RUNNERS_ENABLED=true, N8N_PYTHON_ENABLED=true and the Code Node enabled; when N8N_RUNNERS_MODE is set to external, the escape is limited to the sidecar container and a lower high severity is considered more appropriate.

Mitigation

This vulnerability is fixed in version 2.4.8 and later. If an immediate upgrade cannot be applied, disable the Code Node by adding n8n-nodes-base.code to the NODES_EXCLUDE environment variable, or run Task Runners in external mode so untrusted task code executes in a separate sidecar container.