CVE-2026-86076 PUBLISHED

n8n: Expression Sandbox Escape in Editor-UI Enables Stored Cross-User JavaScript Execution

Assigner: GitHub_M
Reserved: 04.09.2026 Published: 08.09.2026 Updated: 08.09.2026

n8n is an open source workflow automation platform. Prior to 1.123.76, 2.37.7, and 2.38.2, the expression compiler sanitizer resolved through dynamically scoped this and did not reject reserved class member names. A class field named __sanitize could rebind the sanitizer and reach the Function constructor, enabling backend code execution and editor-preview JavaScript execution. The affected AST hook is PrototypeSanitizer in packages/workflow/src/expression-sandboxing.ts. This issue is fixed in versions 1.123.76, 2.37.7 and 2.38.2.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor n8n-io
Product n8n
Versions
  • Version >= 2.38.0, < 2.38.2 is affected
  • Version >= 2.0.0, < 2.37.7 is affected
  • Version < 1.123.76 is affected

References

Problem Types

  • CWE-94: Improper Control of Generation of Code ('Code Injection') CWE