Description
Langroid is a framework for building large-language-model-powered applications. Prior to version 0.65.5, Neo4jChatAgent passes LLM-generated Cypher queries straight to the Neo4j driver with no validation, no statement-type allowlist, and no opt-out gate. The query text is influenceable by prompt injection (direct user input or indirect content the agent reads back via RAG), so an attacker who can influence the prompt can read or destroy all graph data and, when APOC or dbms.security procedures are enabled on the server, achieve OS-command and filesystem access. This is the same defect class and threat model as the SQLChatAgent prompt-to-SQL-to-RCE issue fixed in version 0.63.0 (CVE-2026-25879); that fix did not extend to the neo4j module. Version 0.65.5 contains a fix for the neo4j module.
Published: 2026-07-09
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Langroid’s Neo4jChatAgent forwards LLM‑generated Cypher queries directly to a Neo4j driver without any validation or statement‑type allowlisting. Because the query text can be influenced by prompt injection, an attacker who can steer the prompt can read, delete, or otherwise manipulate any data stored in the graph. If the Neo4j instance enables APOC or dbms.security procedures, the attacker can elevate that activity to OS‑command and filesystem access. This is an injection flaw (CWE‑74) that compromises confidentiality, integrity, and availability and can lead to full system compromise.

Affected Systems

All installations of the Langroid framework with Neo4jChatAgent running the pre‑0.65.5 code, including older releases that have not been updated to 0.65.5, are affected. The vulnerability exists only when the agent is configured to forward Cypher to the server; systems using other Langroid agents or newer versions are immune. The fix was backported into version 0.65.5, which adds validation and an allowlist for Cypher statements.

Risk and Exploitability

The flaw carries a CVSS score of 9.2 indicating critical severity. An EPSS score of 0.00461 (<1%) is available, and the vulnerability is not yet listed in CISA’s KEV catalog, but its similarity to the already high‑profile SQLChatAgent RCE (CVE‑2026‑25879) suggests a realistic exploit path. Attacks require a user capable of influencing the model’s prompt, which is feasible through normal application usage or crafted messages to the LLM. Once injection succeeds, the presence of APOC or dbms.security procedures enables escalation to OS commands, making exploitation a high‑threat scenario.

Generated by OpenCVE AI on July 26, 2026 at 14:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Langroid to version 0.65.5 or later to apply the patch for Neo4jChatAgent.
  • Disable or restrict the execution of APOC and dbms.security procedures on the Neo4j server until a reliable patch is in place.
  • Implement input validation or a Cypher statement allowlist in the Langroid agent to prevent arbitrary queries from being executed.

Generated by OpenCVE AI on July 26, 2026 at 14:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA 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
History

Fri, 10 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Langroid
Langroid langroid
Vendors & Products Langroid
Langroid langroid

Thu, 09 Jul 2026 23:45:00 +0000

Type Values Removed Values Added
Description Langroid is a framework for building large-language-model-powered applications. Prior to version 0.65.5, Neo4jChatAgent passes LLM-generated Cypher queries straight to the Neo4j driver with no validation, no statement-type allowlist, and no opt-out gate. The query text is influenceable by prompt injection (direct user input or indirect content the agent reads back via RAG), so an attacker who can influence the prompt can read or destroy all graph data and, when APOC or dbms.security procedures are enabled on the server, achieve OS-command and filesystem access. This is the same defect class and threat model as the SQLChatAgent prompt-to-SQL-to-RCE issue fixed in version 0.63.0 (CVE-2026-25879); that fix did not extend to the neo4j module. Version 0.65.5 contains a fix for the neo4j module.
Title Langroid: Neo4jChatAgent executes LLM-generated Cypher without validation (prompt-to-Cypher injection; config-conditional RCE), mirroring the SQLChatAgent bug fixed in CVE-2026-25879
Weaknesses CWE-74
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Langroid Langroid
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T13:43:08.734Z

Reserved: 2026-06-16T23:31:22.445Z

Link: CVE-2026-55615

cve-icon Vulnrichment

Updated: 2026-07-10T13:42:22.644Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T14:30:03Z

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')