CVE-2026-85167

n8n before 2.36.2 Query Injection via Elasticsearch Firestore Nodes

Published Sep 3, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
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'}

Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic

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