---
id: CVE-2026-85170
title: >-
  n8n versions before 1.123.73, 2.35.4, and 2.36.2 pass message content in the
  Gmail (v1) and Brevo nodes to the mail composer without verifying it is a
  string
summary: >-
  n8n versions before 1.123.73, 2.35.4, and 2.36.2 pass message content in the
  Gmail (v1) and Brevo nodes to the mail composer without verifying it is a
  string. An authenticated user able to run a workflow can supply an expression
  that res…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-20
vendor: n8n
product: n8n
affected:
  - n8n < 1.123.73
  - 'n8n >= 2.0.0, < 2.35.4'
  - 'n8n >= 2.36.0, < 2.36.2'
patched:
  - n8n 2.36.2
published: '2026-09-03'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T14:42:49.993'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85170'
references:
  - url: 'https://github.com/n8n-io/n8n/security/advisories/GHSA-95ph-833c-4wrp'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/n8n-before-1.123.73-local-file-read-and-ssrf-via-gmail-and-brevo-nodes
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00232
epssPercentile: 0.144
ingestedAt: '2026-09-08T21:11:12.290Z'
---

## Overview

n8n versions before 1.123.73, 2.35.4, and 2.36.2 pass message content in the Gmail (v1) and Brevo nodes to the mail composer without verifying it is a string. An authenticated user able to run a workflow can supply an expression that resolves to an object carrying a path or href property, causing the composer to read a local file accessible to the n8n process or fetch an internal URL (SSRF) and attach the result to the outgoing message.

## Affected

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

## Remediation

Upgrade past the affected range:

- `n8n 2.36.2`
