CVE-2026-103250: Improper Neutralization of Special Elements in Data Query Logic in n8n-io n8n
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.
AI Analysis
Technical Summary
The vulnerability in n8n's MongoDB Chat Memory node allows unauthenticated attackers to exploit improper neutralization of special elements in data query logic via the sessionId parameter. By injecting MongoDB query operators, attackers can access or manipulate conversation histories of other users. Affected versions include all versions prior to 1.123.80, versions from 2.0.0 up to but not including 2.39.6, and versions from 2.40.0 up to but not including 2.40.1.
Potential Impact
Exploitation of this vulnerability can result in unauthorized disclosure of conversation histories and unauthorized modification or deletion of data within the MongoDB Chat Memory node. This compromises confidentiality and integrity of user data. The vulnerability requires no privileges and no user interaction, increasing the risk of exploitation.
Mitigation Recommendations
A fix is available in n8n versions 1.123.80, 2.39.6, and 2.40.1 and later. Users should upgrade to these or later versions to remediate the vulnerability. No other mitigation guidance is provided.
CVE-2026-103250: Improper Neutralization of Special Elements in Data Query Logic in n8n-io n8n
Description
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.
CVSS v4.0
Score 7.0high
Affected software
n8n-io
n8n
pkg:npm/n8n-io/n8nRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in n8n's MongoDB Chat Memory node allows unauthenticated attackers to exploit improper neutralization of special elements in data query logic via the sessionId parameter. By injecting MongoDB query operators, attackers can access or manipulate conversation histories of other users. Affected versions include all versions prior to 1.123.80, versions from 2.0.0 up to but not including 2.39.6, and versions from 2.40.0 up to but not including 2.40.1.
Potential Impact
Exploitation of this vulnerability can result in unauthorized disclosure of conversation histories and unauthorized modification or deletion of data within the MongoDB Chat Memory node. This compromises confidentiality and integrity of user data. The vulnerability requires no privileges and no user interaction, increasing the risk of exploitation.
Mitigation Recommendations
A fix is available in n8n versions 1.123.80, 2.39.6, and 2.40.1 and later. Users should upgrade to these or later versions to remediate the vulnerability. No other mitigation guidance is provided.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-30T10:52:32.249Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abe7492a43b0b3b89bd1ce0
Added to database: 10/01/2026, 14:56:18 UTC
Last enriched: 10/01/2026, 15:22:03 UTC
Last updated: 10/01/2026, 19:41:32 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.