CVE-2026-86076
JSON

8.7high

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

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
0.86% (higher than 59% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-hw8v-xxg5-vvvx

Description

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.

Affected

Product or packageVersionsReported by
n8n-io n8n>= 2.38.0, < 2.38.2, >= 2.0.0, < 2.37.7, < 1.123.76CVE List
n8n (npm)before 1.123.76, from 2.38.0 before 2.38.2, from 2.0.0 before 2.37.7GitHub Advisory Database
n8n n8nbefore 1.123.76, from 2.0.0 before 2.37.7, from 2.38.0 before 2.38.2NVD

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

Impact

The expression compiler's sanitizer resolved through a dynamically-scoped this, so a class field named __sanitize rebound it and reached the Function constructor. On the backend, any expression author could run code in the n8n process; in the editor preview, a member's expression could run as JavaScript in the session of whoever opened the workflow. The patch rejects reserved class-member names.

Patches

The issue has been fixed in n8n versions 1.123.76, 2.37.7, and 2.38.2. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict n8n instance access to fully trusted users only.
  • Avoid granting workflow-create or workflow-edit permissions to untrusted users.
  • Audit existing workflows for unexpected or unfamiliar expressions in node parameters.
  • Set N8N_EXPRESSION_ENGINE=vm.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-86076 changed 2026-09-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-hw8v-xxg5-vvvx changed 2026-09-10CC-BY-4.0
NVDCVE-2026-86076 changed 2026-09-11Public domain