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 package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | < 2.24.0 | CVE List |
| n8n (npm) | before 2.24.0 | GitHub Advisory Database |
| n8n n8n | before 2.24.0 | NVD |
All scores
| GitHub_M | 6.5medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H |
| GitHub | 7.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H |
| NVD | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
Classification
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.mongoDbto theNODES_EXCLUDEenvironment 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
| https://github.com/n8n-io/n8n/security/advisories/GHSA-jpq7-226w-6cxx | mitigation, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-54313 | advisory | |
| https://github.com/n8n-io/n8n | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54313 changed 2026-06-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jpq7-226w-6cxx changed 2026-07-20 | CC-BY-4.0 |
| NVD | CVE-2026-54313 changed 2026-10-25 | Public domain |