CVE-2026-85165

n8n before 2.36.2 Expression Sandbox Bypass via SpreadElement

Published Sep 3, 2026 CVSS 4.0 · 7.2 High EPSS < 1% KEV · Not listed
Description
n8n versions before 2.36.2 contain an expression sandbox bypass vulnerability where free identifiers in spread, computed-key, switch-case, or class-extension positions resolve against process globals. Authenticated users with workflow-edit permission can mutate host objects through expression evaluation, with changes persisting process-wide until restart.

Analysis

AI-generated

Technical impact

n8n versions before 2.36.2 allow an expression sandbox bypass where free identifiers used in spread elements, computed keys, switches, or class extensions are resolved against process globals. Authenticated users with workflow‑edit permission can evaluate malicious expressions that mutate host objects, and those changes persist across the entire process until a restart. This flaw enables an attacker to alter the server’s runtime environment, potentially injecting code or enabling further exploitation. The underlying weakness is identified as CWE‑95, improper neutralization of elements used in a command or interface.

Affected Systems

All n8n instances from the n8n‑io project that are running a version older than 2.36.2 are affected. The vulnerability applies to the n8n workflow automation platform and any deployment using the default expression sandbox.

Risk and Exploitability

The CVSS score of 7.2 indicates moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting limited evidence of exploitation in the wild. However, the attack requires authenticated access with workflow‑edit rights; once obtained, the attacker can alter process‑wide state by crafting a workflow containing the vulnerable expressions. The lack of a publicly available exploitation script or reported incidents does not reduce the need for caution, as the persistence of changes could lead to persistent compromise of the host environment. The risk is elevated for environments where users with workflow‑edit rights are not tightly controlled or monitored.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the n8n installation to version 2.36.2 or later, which patches the sandbox bypass flaw.
  • Restrict workflow‑edit permissions to only trusted users and review role definitions to ensure no excessive privileges.
  • Audit existing workflows for suspicious expression usage and refactor or remove any that rely on potentially unsafe syntax such as spread elements or computed keys.

Generated by OpenCVE AI on September 3, 2026 at 13:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description n8n versions before 2.36.2 contain an expression sandbox bypass vulnerability where free identifiers in spread, computed-key, switch-case, or class-extension positions resolve against process globals. Authenticated users with workflow-edit permission can mutate host objects through expression evaluation, with changes persisting process-wide until restart.
Title n8n before 2.36.2 Expression Sandbox Bypass via SpreadElement
First Time appeared N8n
N8n n8n
Weaknesses CWE-95
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

{'score': 7.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 9:16 PM
Reserved
Sep 3, 2026, 11:05 AM
Status
Analyzed
Published
Sep 3, 2026, 1:06 PM
Modified
Oct 29, 2026, 9:17 PM