Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify n8n instance with external-facing webhook trigger
-
DeliverySend crafted payload embedding MongoDB operator (e.g., {"$ne": null})
-
Exploitn8n resolves expression and parses Query as JSON without operator sanitization
-
ExecutionInjected operator alters MongoDB query semantics
-
PersistDatabase executes unintended full-collection operation
-
ImpactAttacker exfiltrates all documents or triggers mass deletion
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Exploitation requires three concurrent conditions: first, the target n8n instance must use the MongoDB integration node in a workflow with Find, Delete, or Aggregate operations; second, the workflow must accept externally-controlled data - such as webhook payloads, HTTP parameters, or form submissions - and route that data into the MongoDB node's Query parameter without sanitization or strict type enforcement; third, the MongoDB database must be reachable from the n8n server. The CVSS 4.0 AT:P metric explicitly encodes these deployment-specific preconditions. Limiting factors include: workflows that use only static or developer-hardcoded queries are not exploitable regardless of version; n8n instances with no externally-facing workflow triggers are not directly exploitable from the internet; and MongoDB accounts provisioned with read-only permissions would prevent injection via Delete operations, though collection-wide reads via Find would still be reachable. The CVSS 4.0 PR:N metric confirms no attacker authentication is required against n8n itself, but the workflow trigger mechanism (e.g., webhook authentication headers) may impose additional access controls in specific deployments. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H) rates the subsequent-system (MongoDB database) impact as High across all three pillars, while the vulnerable system (n8n itself) shows no direct impact - correctly reflecting that n8n is the injection point but MongoDB bears the operational consequences. The AT:P (Attack Requirements: Present) metric is the critical moderating factor: exploitation requires a workflow specifically configured to accept external input and route it unsanitized into a MongoDB node query, meaning not all n8n deployments are equally exposed. No EPSS data was provided in the input, which limits probabilistic risk quantification. The absence of a CISA KEV entry and no confirmed public exploit code reduce immediacy, but the High subsequent-system impact across integrity and availability - including the potential for full-collection deletion - means the practical blast radius for affected workflows is severe. The PR:N metric confirms that no attacker authentication is required against n8n itself, though the workflow trigger mechanism may impose its own access controls depending on deployment. |
| Exploit ScenarioDerived | An attacker identifies an n8n instance with a publicly accessible webhook-triggered workflow that performs a MongoDB Find operation using a customer-supplied identifier (e.g., a product ID or user lookup). By sending a crafted webhook payload where the query field contains {"$ne": null} instead of a legitimate value, the attacker transforms the intended single-record lookup into a full-collection scan, retrieving all documents. If the workflow uses a Delete operation, the same operator injection triggers mass deletion of the entire collection without any authentication against n8n itself. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
NoSQL injection in n8n's MongoDB integration node (Find, Delete, and Aggregate operations) allows an attacker who can supply externally-controlled data into a workflow query to inject MongoDB operators such as $ne or $where, transforming an intended single-document lookup into full-collection disclosure, mass deletion, or arbitrary database operations. Versions prior to 1.123.69 (v1 branch) and 2.33.4 / 2.34.1 (v2 branch) are affected, per vendor advisory GHSA-953p-jm2c-8h5j. No public exploit code or CISA KEV listing has been identified at time of analysis, though the CVSS 4.0 subsequent-system impact is rated High across confidentiality, integrity, and availability.
RemediationAI
The primary fix is to upgrade n8n to version 1.123.69 or later for v1 deployments, or to 2.33.4 / 2.34.1 or later for v2 deployments, as documented in GHSA-953p-jm2c-8h5j. For deployments that cannot immediately patch, the most effective compensating control is to audit all workflows using MongoDB nodes and ensure that no externally-supplied, untrusted data is passed directly into the Query parameter of Find, Delete, or Aggregate operations - restructure affected workflows to use static, hardcoded queries or enforce strict allowlisting of query values before they reach the MongoDB node. Restricting n8n webhook and trigger endpoints to trusted internal networks or behind authenticated gateways reduces the attacker-reachable surface for AT:P exploitation; this does not eliminate the vulnerability but raises the bar significantly. Disabling or removing MongoDB nodes in any workflow that processes external input is a more aggressive but reliable interim control. Note that sanitizing input within n8n expression logic alone is not a reliable substitute for the vendor patch, as the injection occurs after expression resolution.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is a workflow automation platform that allows users to build integrations using nodes representing external services. The MongoDB node parses the Query parameter as JSON after n8n's internal expression resolver runs - resolving workflow variables and externally-supplied data into the query - but does not sanitize MongoDB query operators prior to passing the constructed object to the MongoDB driver. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) describes this root cause class: when user-controlled data containing MongoDB operators such as $ne, $where, or $regex is embedded in a query object, it can alter query semantics beyond the developer's intent. The affected CPE is cpe:2.3:a:n8n-io:n8n:*:*:*:*:*:*:*:* across all three affected version ranges (pre-1.123.69, pre-2.33.4, and pre-2.34.1).
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Network-reachable but requires specific workflow configuration routing external input to MongoDB node (AC:H, matching AT:P); scope change because MongoDB is the impacted component, not n8n itself.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n before 1.123.69, 2.33.4, and 2.34.1 contains a NoSQL injection vulnerability in the MongoDB node's Find, Delete, and Aggregate operations, which parse the Query parameter as JSON after expression resolution without sanitizing MongoDB operators. An attacker who can influence the resolved query (e.g., via externally-controlled data) can inject operators such as $ne or $where, turning an intended single-document lookup into full-collection disclosure, full-collection deletion, or other operations on the database server.
Executive ViewAI
n8n's MongoDB integration node contains a NoSQL injection vulnerability that permits attackers to extract entire databases, delete collections, or execute arbitrary database operations if they can influence workflow query logic. Organizations using n8n versions prior to 1.123.69 (v1 branch) and 2.33.4/2.34.1 (v2 branch) with MongoDB backends face immediate risk of data theft and service disruption, particularly for workflows processing external or user-supplied input. No vendor-released patch identified at time of analysis, requiring compensating controls to protect sensitive databases.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) enforce strict input validation and whitelist permitted MongoDB operators ($eq, $gt, etc.) for all external data sources, blocking injection patterns ($ne, $where, $regex); (2) provision MongoDB credentials with minimal permissions, segregating read-only access for query-only workflows from write-enabled accounts; (3) disable or network-isolate workflows processing sensitive data until patch availability; (4) implement database query logging with alerting for anomalous operator usage; (5) restrict network access to MongoDB instances to only required n8n service components; (6) conduct workflow-by-workflow security review to map external input sources and MongoDB operations for risk prioritization.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
EUVD-2026-63259
GHSA-4x9q-xqfh-jh4j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB