Intel

AIKIDO-2026-917028

langroid is vulnerable to Code Injection

GHSA-83w4-crcp-3w4pPublished Jul 30, 2026
July 30, 2026

98

CVE Score

Critical

Code Injection

Are you affected? Scan for Free

TL;DR

CSVGraphAgent.pandas_to_kg executes fully LLM-generated Cypher through write_query without the validate_cypher_query and allow_dangerous_operations gating applied to the agent's other Cypher handlers. Input that influences the prompt, including CSV contents embedded verbatim into the system message, can drive arbitrary Cypher under the agent's Neo4j role. This allows full graph read and exfiltration, destructive writes, LOAD CSV from a remote URL, and configuration-conditional code execution where APOC or dbms procedures are enabled. The fix routes this handler through the same validation gate as the other Cypher tools.

How do I fix this?

Upgrade the langroid library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use CSVGraphAgent against a Neo4j instance with untrusted CSV data or prompt-influenced input.

Package

Versions

0.0.1 - 0.65.10

Fixed in 0.65.11

Background info

langroid is vulnerable to Code Injection in versions 0.0.1 - 0.65.10.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea