Description
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.
Published: 2026-09-03
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Data Exposure
Action: Immediate Patch
AI Analysis

Impact

The vulnerability enables injection of query operators into Elasticsearch and Google Cloud Firestore document queries built by the n8n workflow engine. By crafting an expression containing quote and brace characters, an attacker can close the intended field and add new query operators, turning a single‑document lookup into a full‑collection read. This results in unintended disclosure of potentially sensitive data stored in the n8n instance. The weakness is a query injection flaw (CWE‑943).

Affected Systems

Versions of n8n prior to 2.35.4 and the 2.36.x series before 2.36.2 are affected. The issue is addressed in n8n 2.36.2 and later, and also in the 2.35.4 release. Organizations using older releases should identify and upgrade accordingly.

Risk and Exploitability

The CVSS score of 6.3 rates the vulnerability as medium severity. No EPSS score is published and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is remote exploitation of the n8n workflow definitions that accept user‑supplied expressions. If an attacker can influence those expressions—either through malicious workflow input or by modifying a workflow configuration—they can execute the injection and retrieve data beyond the intended scope. No privilege escalation is required beyond the normal permissions required to use the affected workflow nodes.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade n8n to version 2.36.2 or later (or to 2.35.4 if running the 2.35.x branch) to receive the fixed query handling logic.
  • Disable or remove Elasticsearch and Google Cloud Firestore query nodes from existing workflows until the update is applied.
  • Implement logging and monitoring for anomalous query patterns or validate user input to detect potential injection attempts.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 10 Sep 2026 20:00:00 +0000

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

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


Thu, 03 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 03 Sep 2026 11:30:00 +0000

Type Values Removed Values Added
Description 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.
Title n8n before 2.36.2 Query Injection via Elasticsearch Firestore Nodes
First Time appeared N8n
N8n n8n
Weaknesses CWE-943
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-03T12:27:35.933Z

Reserved: 2026-09-03T11:05:09.078Z

Link: CVE-2026-85167

cve-icon Vulnrichment

Updated: 2026-09-03T12:27:27.226Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-03T13:06:24.003

Modified: 2026-09-10T19:53:08.683

Link: CVE-2026-85167

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T15:30:05Z

Weaknesses
  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic