Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed n8n webhook endpoint
-
ExploitCraft payload manipulating MongoDB updateKey
-
ExecutionNode builds unvalidated update selector
-
ImpactOverwrite or insert unintended documents
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 a specific deployment condition: an active n8n workflow that uses the MongoDB node's Update or Find And Replace operation AND passes untrusted external input (such as a webhook body) into the updateKey value. This matches the AT:P (attack requirement present) metric - without such a workflow the node is not exploitable. The supplied CVSS vector sets PR:L, so per the framework this is characterized as authenticated; however, the description's vector is an untrusted webhook body, so whether PR:L denotes attacker authentication or required access to the n8n instance/workflow configuration is not confirmed from available data. Limiting factors: the MongoDB node must be in use (it can be disabled via the NODES_EXCLUDE environment variable using n8n-nodes-base.mongoDb), the affected operations must be active, and the updateKey must be influenceable by external data; impact is confined to MongoDB document integrity (overwriting unintended documents or inserting new ones) with no confidentiality or availability effect. |
| Impact | This is a moderate-risk integrity flaw, not an emergency. The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N) scores 5.3 and is integrity-only: it asserts no confidentiality or availability impact (VC:N/VA:N) but high integrity impact on both the vulnerable system and a subsequent system (SI:H/SA:H), reflecting unintended modification of MongoDB documents. The AT:P metric signals that a specific attack requirement must be met - here, a workflow that routes untrusted input into the MongoDB node's updateKey - so exploitation is conditional on deployment rather than universal. No EPSS score, no CISA KEV listing, and no confirmed working exploit are present in the input; the two references (the n8n GHSA advisory and the VulnCheck advisory) are vendor/researcher advisories, not verified exploit code. The vuln.today decision label is this_month, consistent with a real-but-not-urgent priority. One signal tension to flag: the CVSS vector states PR:L (a privilege requirement), yet the description's exploitation vector is an untrusted webhook body, which is typically unauthenticated external input - verify with the vendor whether PR:L reflects required access to the n8n instance/workflow configuration rather than attacker authentication. Overall this is a legitimate hardening priority for n8n operators who use the MongoDB node with external input, but the integrity-only scope, configuration dependency, and absence of KEV/EPSS/PoC-exploit signals keep it below top-tier urgency. |
| Exploit ScenarioDerived | An n8n operator runs a workflow that feeds an inbound webhook body into the MongoDB node's Update or Find And Replace operation. An attacker posts a crafted JSON payload to that webhook so the updateKey resolves to a selector matching documents other than intended, causing the node to overwrite unrelated documents or insert new ones. No confidentiality or availability impact occurs, and no verified working exploit code is identified in the available sources. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
NoSQL injection in the n8n MongoDB node lets a workflow that passes untrusted input, such as a webhook body, into the update key of the Update or Find And Replace operations match and overwrite documents other than the one intended, or insert new documents into the MongoDB database. The flaw affects npm/n8n before 1.123.89, 2.x before 2.45.5, 2.46.x before 2.46.1 and 3.x before 3.0.1, and is only reachable where such a workflow is active and its updateKey value can be influenced by external data. Impact is confined to MongoDB document integrity with no confidentiality or availability effect, no public exploit code was identified at time of analysis, and the vendor has released fixed versions for every affected branch; this is a moderate-risk integrity flaw, not an emergency.
RemediationAI
Vendor-released patch: upgrade to n8n 1.123.89, 2.45.5, 2.46.1 or 3.0.1 (or later) according to the branch in use - the advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-4v22-g448-h4rg lists these as the fixed versions and the npm package metadata sets the corresponding minimum safe versions. If upgrading cannot be done immediately, the vendor's short-term measures are to restrict n8n instance access to fully trusted users, audit every active workflow that uses the MongoDB node with Update or Find And Replace and ensure its updateKey cannot be influenced by untrusted external data, apply network-level controls restricting access to webhook endpoints that feed MongoDB update workflows, deactivate affected workflows until the instance is patched, or disable the node entirely by adding n8n-nodes-base.mongoDb to the NODES_EXCLUDE environment variable (which removes MongoDB node functionality from all workflows relying on it). The vendor states these workarounds do not fully remediate the risk and are suitable only as temporary measures.
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 (distributed as the npm package n8n and identified in CPE as cpe:2.3:a:n8n-io:n8n) whose MongoDB node performs database operations on behalf of a workflow. In the Update and Find And Replace operations, the node builds its document-matching query from an update key supplied by the incoming item, and the advisory states this value was not sufficiently validated, which is the CWE-943 (improper neutralization of special elements in data query logic) class of defect: caller-controlled data reaches the query layer and can change which documents the operation selects, so a workflow fed untrusted input can be steered into overwriting unintended documents or inserting new ones. The supplied CVSS 4.0 vector records AT:P (attack requirements present) and PR:L, and the independent assessment maps this to CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N - exploitation is conditional on an active workflow that uses the affected operations and lets external data reach the updateKey, the scope change reflects impact on the downstream MongoDB rather than n8n itself, and the sources do not describe the exact payload structure or how the injected value is constructed. Whether PR:L denotes attacker credentials or merely access to the n8n instance and its workflow configuration is not confirmed from available data; the node can be removed from the runtime entirely by adding n8n-nodes-base.mongoDb to the NODES_EXCLUDE environment variable.
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:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:H
Network-reachable but conditional on a vulnerable workflow configuration (AC:H); PR:L per the vendor signal; integrity-only impact on database documents with scope change into MongoDB (S:C, I:H, C:N, A:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
n8n before 1.123.89, 2.x before 2.45.5, 2.46.x before 2.46.1, and 3.x before 3.0.1 contains a NoSQL injection vulnerability in the MongoDB node's Update and Find And Replace operations due to insufficient validation of the update key value taken from incoming items. Attackers who can supply untrusted input, such as a webhook body, to a workflow using these operations can make the node match and overwrite unintended documents or insert new documents in the MongoDB database.
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
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
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
EUVD-2026-125182
GHSA-q2mq-gv2x-2mgf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB