---
id: CVE-2026-103250
title: >-
  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
summary: >-
  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
  s…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L'
cwe:
  - CWE-943
vendor: n8n-io
product: n8n
affected:
  - n8n < 1.123.80
  - n8n >= 2.0.0 < 2.39.6
  - n8n >= 2.40.0 < 2.40.1
published: '2026-10-01'
updated: '2026-10-01'
sourceUpdated: '2026-10-01T11:17:18.920'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103250'
references:
  - url: 'https://github.com/n8n-io/n8n/security/advisories/GHSA-w24g-6454-7w7f'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/n8n-before-1.123.80-2.39.6-and-2.40.1-nosql-injection-via-mongodb-chat-memory
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-01T11:42:53.800Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
