---
id: CVE-2026-85167
title: >-
  n8n before 2.35.4 and 2.36.x before 2.36.2 contain a query injection
  vulnerability in the Elasticsearch Document Get All and Google Cloud Firestore
  Document Query operations, which build their JSON query by interpolating
  expression value…
summary: >-
  n8n before 2.35.4 and 2.36.x before 2.36.2 contain a query injection
  vulnerability in the Elasticsearch Document Get All and Google Cloud Firestore
  Document Query operations, which build their JSON query by interpolating
  expression value…
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-943
vendor: n8n
product: n8n
affected:
  - n8n < 2.35.4
  - 'n8n >= 2.36.0, < 2.36.2'
patched:
  - n8n 2.36.2
published: '2026-09-03'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T19:53:08.683'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85167'
references:
  - url: 'https://github.com/n8n-io/n8n/security/advisories/GHSA-wxwj-8wv6-vpw2'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/n8n-before-2.36.2-query-injection-via-elasticsearch-firestore-nodes
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00232
epssPercentile: 0.14375
ingestedAt: '2026-09-08T21:11:12.290Z'
---

## Overview

n8n before 2.35.4 and 2.36.x before 2.36.2 contain a query injection vulnerability in the Elasticsearch Document Get All and Google Cloud Firestore Document Query operations, which build their JSON query by interpolating expression values directly into the query string before parsing. A value containing quote and brace characters can close the intended field and introduce new query operators, turning an intended single-document lookup into a full-collection read.

## Affected

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

## Remediation

Upgrade past the affected range:

- `n8n 2.36.2`
