All vulnerabilities

Servers and applications

CVE-2026-91937

Cross-Session Data Leakage via NoSQL Injection in MongoDBMemory Node

Severity
High 8.7
Published
31 Aug 2026
Last changed
17 Sept 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.1.4
Exploit chance
0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 19 Nov 2026
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Also known as
GHSA-wpvf-4vfx-rgxm
Sources
Project advisories (GitHub)

Description

The MongoDBMemory node (MongoDB Atlas Chat Memory) in Flowise fails to sanitize the overrideConfig.sessionId parameter before using it as a MongoDB query value. An unauthenticated attacker can supply a MongoDB operator object (e.g., {"$ne": null}) through the public Prediction API, causing the MongoDB driver to interpret the value as a query operator instead of a literal session identifier. This allows the attacker to retrieve chat history records belonging to arbitrary other users from the shared MongoDB collection — including any sensitive data those users disclosed to the AI agent (API keys, passwords, internal configuration).

Two independent weaknesses combine to create the injection path.

getChatMessages() passes the session identifier directly to the MongoDB findOne() query predicate. When the identifier is an operator object, the MongoDB driver evaluates it as a query expression against all documents in the collection.

From FlowiseAI/Flowise's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
FlowiseServers and applications · github:flowiseai/flowise
  • Every version before 3.1.4

About Flowise

Build AI Agents, Visually

From its GitHub repository.
Archived
Yes, no longer maintainedGitHub
Weekly downloads (npm)
6,604npm, 15 Nov 2026
Docker Hub pulls
7,390,661Docker Hub, 15 Nov 2026
GitHub stars
55,573GitHub, 15 Nov 2026
Forks
25,094GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
29 Jul 2026GitHub
First published on GitHub
31 Mar 2023GitHub

References