CVE-2026-54313
JSON

6.5medium

n8n: NoSQL Injection in MongoDB Node Find And Replace Operation

Severity
6.5medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jpq7-226w-6cxx

Description

n8n is an open source workflow automation platform. Prior to 2.24.0, an authenticated user with workflow edit access could supply a malicious filter value in the MongoDB node's Find And Replace operation. The value was not validated before being passed to MongoDB as a query filter, allowing unintended documents to be matched and overwritten with attacker-controlled content. This vulnerability is fixed in 2.24.0.

Affected

Product or packageVersionsReported by
n8n-io n8n< 2.24.0CVE List
n8n (npm)before 2.24.0GitHub Advisory Database
n8n n8nbefore 2.24.0NVD

All scores

GitHub_M6.5medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
GitHub7.7medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
NVD7.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

n8n is an open source workflow automation platform. Prior to 2.24.0, an authenticated user with workflow edit access could supply a malicious filter value in the MongoDB node's Find And Replace operation. The value was not validated before being passed to MongoDB as a query filter, allowing unintended documents to be matched and overwritten with attacker-controlled content. This vulnerability is fixed in 2.24.0.

GitHub Advisory Database

Impact

An authenticated user with workflow edit access could supply a malicious filter value in the MongoDB node's Find And Replace operation. The value was not validated before being passed to MongoDB as a query filter, allowing unintended documents to be matched and overwritten with attacker-controlled content.

Patches

The issue has been fixed in n8n version 2.24.0. Users should upgrade to this version or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Limit workflow creation and editing permissions to fully trusted users only.
  • Disable the MongoDB node by adding n8n-nodes-base.mongoDb to the NODES_EXCLUDE environment variable.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

NVD (es)

n8n es una plataforma de automatización de flujos de trabajo de código abierto. Antes de la 2.24.0, un usuario autenticado con acceso de edición de flujos de trabajo podría proporcionar un valor de filtro malicioso en la operación ’Find And Replace’ del nodo de MongoDB. El valor no fue validado antes de ser pasado a MongoDB como un filtro de consulta, permitiendo que documentos no deseados fueran emparejados y sobrescritos con contenido controlado por el atacante. Esta vulnerabilidad está corregida en la 2.24.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54313 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-jpq7-226w-6cxx changed 2026-07-20CC-BY-4.0
NVDCVE-2026-54313 changed 2026-10-25Public domain