Skip to content
HighVulnerability

GHSA-6xcw-7xm6-48c6: n8n: Expression Sandbox Escape via Shared Builtin Tampering and Code-Printer Injection Leads to Code Execution

Published
Record updated
View JSON
Affected
  • n8n >= 2.0.0, < 2.37.7, fixed in 2.37.7, released September 2, 2026, 8 days before disclosure
  • n8n >= 2.38.0, < 2.38.2, fixed in 2.38.2, released September 2, 2026, 8 days before disclosure
  • n8n < 1.123.76, fixed in 1.123.76, released September 2, 2026, 8 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

Two code-generation stages in n8n's legacy expression engine called the global JSON.stringify at generation time. An expression that replaced that global could change the source that was generated and then executed, turning literal data into executable code. The vm expression engine, the default on patched releases, is not affected.

Mitigation

Fixed in n8n 1.123.76, 2.37.7, and 2.38.2. If upgrading is not immediately possible, set N8N_EXPRESSION_ENGINE=vm, restrict instance access to fully trusted users, and run the n8n process under a dedicated low-privilege OS user account. These workarounds do not fully remediate the risk and are short-term measures only.