---
id: CVE-2026-85165
title: >-
  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
summary: >-
  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-ed…
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-95
vendor: n8n
product: n8n
affected:
  - n8n < 2.35.4
  - 'n8n >= 2.36.0, <= 2.36.2'
patched:
  - n8n 2.35.4
published: '2026-09-03'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T19:55:37.867'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85165'
references:
  - url: 'https://github.com/n8n-io/n8n/security/advisories/GHSA-fg85-4wv2-p98j'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/n8n-before-2.36.2-expression-sandbox-bypass-via-spreadelement
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00572
epssPercentile: 0.44911
ingestedAt: '2026-09-08T21:11:12.290Z'
---

## Overview

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.

## Affected

- `n8n < 2.35.4`
- `n8n >= 2.36.0, <= 2.36.2`

## Remediation

Upgrade past the affected range:

- `n8n 2.35.4`
