ZeroHour

CVE-2026-91937

moderate

Unauthenticated NoSQL Injection in Flowise MongoDBMemory Leaks Chat Histories

CVSS 4.0
8.7 high
EPSS
Published
()
Modified
AI analysis

Flowise before version 3.1.4 does not sanitize the overrideConfig.sessionId parameter before passing it to MongoDB queries inside the MongoDBMemory node, allowing a NoSQL injection (CWE-943). An unauthenticated attacker can send MongoDB operator objects (such as $ne or $regex constructs) as the sessionId value through the publicly reachable prediction API (/api/v1/prediction) to manipulate the query filter. Successful injection lets the attacker read chat history records belonging to other users stored in the shared MongoDB collection, exposing potentially sensitive conversation content without any authentication. Deployments are only vulnerable if they use the MongoDBMemory node and expose the prediction endpoint, with self-hosted instances that lack an auth layer in front of the API at greatest risk. No public proof of concept exists and no exploitation in the wild has been observed as of this analysis.

What to do: Upgrade Flowise to version 3.1.4 or later, which sanitizes the sessionId parameter before it reaches MongoDB. If immediate patching is not possible, place authentication or an IP-restricting reverse proxy in front of the /api/v1/prediction endpoints, and review chat-history collections for evidence of NoSQL operator payloads in session IDs indicating probing or data access.

Affected
FlowiseAI Flowisebefore 3.1.4
Estimated exposure
moderate≈1,000–5,000 internet-exposed self-hosted instances (estimate) — Flowise is a popular open-source, predominantly self-hosted LLM workflow builder (tens of thousands of GitHub stars), and public internet scans typically surface low thousands of exposed instances, only a subset of which use the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Flowise before 3.1.4 fails to sanitize the overrideConfig.sessionId parameter before using it in MongoDB queries within the MongoDBMemory node. Unauthenticated attackers can submit MongoDB operator objects through the prediction API to read chat history records belonging to other users from the shared collection.

Weakness
CWE-943
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.