N8n-io n8n
n8n: Expression Sandbox Escape via Shared Builtin Tampering and Code-Printer Injection Leads to Code Execution
n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the legacy expression engine generated source text by calling the mutable global JSON.stringify while printing synthetic string literals and interpolating timezone data. An expression could replace JSON.stringify and cause later generated source to contain executable attacker-controlled code. The affected code-generation paths include packages/@n8n/expression-runtime/src/bridge/isolated-vm-bridge.ts and packages/@n8n/tournament/src/ExpressionBuilder.ts, and the issue does not affect the vm expression engine. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.38.0, < 2.38.2
- >= 2.0.0, < 2.37.7
- < 1.123.76
Fixed in 2.38.2, 2.37.7, 1.123.76
Mitigation
Upgrade n8n to 2.38.2 or 2.37.7 or 1.123.76 or later.
References
- Vendor advisory github.com/n8n-io/n8n/security/advisories/GHSA…
- Release notes github.com/n8n-io/n8n/releases/tag/n8n@1.123.7…
- Release notes github.com/n8n-io/n8n/releases/tag/n8n@2.37.7
1 more
- Release notes github.com/n8n-io/n8n/releases/tag/n8n@2.38.2
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.