highVulnerability

GHSA-28g4-38q8-3cwc

## 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 s

Properties

ghsa_id
GHSA-28g4-38q8-3cwc
summary
Flowise: Cypher Injection in GraphCypherQAChain
severity
high
cve_id
GHSA-28g4-38q8-3cwc
is_ghsa_only
true
ghsa_published
2026-04-16T21:54:26Z
source_url
https://github.com/advisories/GHSA-28g4-38q8-3cwc
ghsa_updated
2026-04-16T21:54:28Z

Related Entities (6)

AFFECTS (2)

[Software]npm/flowise
[Software]npm/flowise-components

HAS_WEAKNESS (1)

[Weakness]Improper Neutralization of Special Elements in Data Query Logic

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (2)

[Software]npm/flowise-components
[Software]npm/flowise

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-28g4-38q8-3cwc — Ninja Signal Threat Intelligence | Ninja Signal