PyPI: langroid

CVE-2025-46725

Safety vulnerability ID: SFTY-20250520-40333

Safety legacy ID: pyup.io-77311

Affected versions of Langroid are vulnerable to Code Injection when using LanceDocChatAgent. LanceDocChatAgent uses pandas eval() through compute_from_docs(). As a result, an attacker may be able to make the agent run malicious commands through QueryPlan.dataframe_calc compromising the host system.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store

Advisory

Affected versions of Langroid are vulnerable to Code Injection when using LanceDocChatAgent. LanceDocChatAgent uses pandas eval() through compute_from_docs(). As a result, an attacker may be able to make the agent run malicious commands through QueryPlan.dataframe_calc compromising the host system.

Affected Package

Affecting langroid package, versions<0.53.15

Also affects

---

How to Fix

Upgradelangroidto0.53.15or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more