Skip to content
CriticalVulnerabilityLLM-specific

GHSA-2pq5-3q89-j7cc: Langroid: Neo4jChatAgent executes LLM-generated Cypher without validation (prompt-to-Cypher injection; config-conditional RCE), mirroring the SQLChatAgent bug fixed in CVE-2026-25879

Published
Record updated
View JSON
Affected
  • langroid <= 0.65.4
Fixed in
0.65.5
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

Langroid's Neo4jChatAgent sends LLM-generated Cypher queries directly to the Neo4j driver through its read_query and write_query paths, with no validation, statement-type allowlist, or opt-out gate. Because prompt injection can influence the query text, an attacker can read or destroy graph data and, when APOC or dbms.security procedures are enabled, reach OS-command and filesystem access. The report says this is the same defect class as the SQLChatAgent issue fixed in version 0.63.0 (CVE-2026-25879), and that the fix did not extend to the neo4j module.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.