Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed n8n MongoDB Chat Memory endpoint
-
DeliveryCraft sessionId with Mongo query operators
-
ExploitBypass session scoping via NoSQL injection
-
ExecutionRead other users' conversation histories
-
ImpactPerform unauthorized writes and deletes
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 that the target n8n instance runs a workflow using the MongoDB Chat Memory node and that its sessionId-handling path is reachable by the attacker (this is the AT:P attack requirement - not a default/stock configuration). Given that prerequisite, no authentication is required (PR:N) and no user interaction (UI:N); the attacker simply supplies MongoDB query operators in the sessionId field. Limiting factors: instances not using the MongoDB Chat Memory node are unaffected, and the exposed data's sensitivity (hence real impact) depends on what conversation content is stored. Fixed in n8n 1.123.80, 2.39.6, and 2.40.1. |
| Impact | CVSS 4.0 base is 7.0 (vendor/VulnCheck) and the vector is network-reachable and low-complexity with PR:N (unauthenticated), which is a genuine escalation over the sibling n8n advisories in this batch that mostly required PR:L. However, three signals temper the raw score: (1) AT:P indicates an attack requirement - the vulnerable MongoDB Chat Memory node must actually be configured and reachable in a running workflow, so this is not exploitable against a stock install; (2) impact is modest - vendor scores VC:L with VI:N/VA:N on the vulnerable system, pushing severity largely onto subsequent-system metrics (SC:H/SI:L/SA:L) reflecting cross-tenant data exposure plus write/delete of other users' chat histories; (3) exploitation status is low - no EPSS score, no CISA KEV listing, and no public exploit identified at time of analysis. This is a real, prioritizable issue for any deployment using the MongoDB Chat Memory node (the unauthenticated vector makes it worth patching promptly), but it is not a mass-exploitation emergency: the limited confidentiality impact and the feature-configuration prerequisite keep real-world risk moderate rather than critical. Note the vendor's own confidentiality call of VC:L is defensible but arguably light given attackers can read arbitrary users' conversation histories - treat exposed data sensitivity as deployment-dependent. |
| Exploit ScenarioDerived | An n8n instance exposes a workflow that uses the MongoDB Chat Memory node (e.g., an AI chatbot backend). An unauthenticated attacker submits a sessionId value containing MongoDB query operators (such as a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 01, 2026
Unauthenticated remote attackers can exploit NoSQL injection in the n8n MongoDB Chat Memory node to bypass sessionId validation and read or manipulate stored conversation histories belonging to other users, rated CVSS 4.0 base 7.0 (network-reachable, low complexity, PR:N) and assessed by us as CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N. The exposure is conditional rather than default: exploitation requires a target instance to run a workflow that uses the MongoDB Chat Memory node and to have its sessionId-handling path reachable (the CVSS 4.0 AT:P attack requirement), so installations that never use that node are unaffected, and the real-world impact depends on the sensitivity of the conversation content stored. Patch is available from the vendor in n8n 1.123.80, 2.39.6 and 2.40.1, and no public exploit code has been identified at time of analysis.
RemediationAI
Upgrade to a fixed release: n8n 1.123.80 for the 1.x line, 2.39.6 for the 2.0.0-through-2.39.x line, or 2.40.1 for the 2.40.x line (Vendor-released patch: 1.123.80, 2.39.6, 2.40.1), following the vendor advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-w24g-6454-7w7f. Where upgrading is not immediately possible, the most direct compensating control is to remove or disable MongoDB Chat Memory nodes from any workflow whose sessionId path is externally reachable, accepting loss of conversation-memory functionality for those workflows. Because the affected path is unauthenticated (PR:N), placing the n8n instance or the specific workflow endpoint behind an authenticating reverse proxy or network allow-list reduces who can reach the vulnerable path, at the cost of breaking public/unauthenticated webhook integrations and requiring clients to hold credentials. Restricting outbound network exposure of the instance and auditing MongoDB query logs for operator-shaped sessionId values (for example values beginning with $ or containing query-operator keys) can detect exploitation attempts, and stored conversation histories created before patching should be reviewed for cross-session contamination and, where warranted, purged; note that log-based monitoring is detection-only and does not prevent the read or write of other users' histories.
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 low-code workflow automation platform in which nodes encapsulate integrations and helper services; the MongoDB Chat Memory node is a conversation-memory component that persists LLM chat history in a MongoDB collection keyed by a sessionId value supplied by the caller. The flaw class is CWE-943 (Improper Neutralization of Special Elements in Data Query Logic): the node fails to enforce that sessionId is a literal string, so an attacker can submit MongoDB query operators (for example $ne, $gt or $regex-style constructs) that are interpreted as query-filter documents instead of as an opaque identifier. This is the classic MongoDB NoSQL injection pattern where an operator such as $ne with an empty or wildcard value causes the filter to match records belonging to other sessions, and the same unsanitized input reaching write/delete paths allows modification of those records. CPE cpe:2.3:a:n8n-io:n8n:*:*:*:*:*:*:*:* confirms the affected component is the n8n application itself across the vulnerable version ranges, consistent with the EUVD affected-version list (n8n 0 < 1.123.80, 2.0.0 < 2.39.6, 2.40.0 < 2.40.1) and the vendor GitHub advisory GHSA-w24g-6454-7w7f. Our independent vector scores scope change (S:C) because the injection crosses the session/tenant boundary within the shared MongoDB store, with low confidentiality and low integrity impact and no assessed availability impact.
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:L/VI:N/VA:N/SC:H/SI:L/SA:L
Unauthenticated network injection (PR:N/AV:N/AC:L) crossing a user/tenant boundary to other users' data warrants S:C; reads yield C:L and write/delete yield I:L, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n versions before 1.123.80, from 2.0.0 before 2.39.6, and from 2.40.0 before 2.40.1 contain a NoSQL injection vulnerability in the MongoDB Chat Memory node that fails to validate the sessionId parameter. Unauthenticated attackers can supply MongoDB query operators in the sessionId field to access conversation histories from other users and perform unauthorized write and delete operations.
Articles & Coverage 1
Technical POC Analysis
Evidence note: no patch diff and no PoC code were supplied.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
n8n workflow automation instances that use the MongoDB Chat Memory node expose stored conversation histories to unauthenticated attackers, who can bypass sessionId validation to read or tamper with other users' data. The risk is concentrated in teams running AI/chat workflows against shared MongoDB backends, where leaked conversations may contain customer or employee information and could trigger privacy or contractual obligations. Organizations that do not use this node are unaffected, but those that do should treat the exposure as an active data-governance issue rather than a purely technical defect.
Apply vendor patch.
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
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
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
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
EUVD-2026-90644
GHSA-gpvq-4wmp-cp47
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB