PyPI: langroid

CVE-2025-46724

Safety vulnerability ID: SFTY-20250520-23009

Safety legacy ID: pyup.io-77310

Affected versions of Langroid are vulnerable to Code Injection when using TableChatAgent. TableChatAgent uses pandas eval(). If fed by untrusted user input, like the case of a public-facing LLM application, an attacker may be able to make the agent run malicious commands compromising the host system.

Created at: Nov 6, 2025Updated at: Nov 6, 2025

Overview

Langroid has a Code Injection vulnerability in TableChatAgent

Advisory

Affected versions of Langroid are vulnerable to Code Injection when using TableChatAgent. TableChatAgent uses pandas eval(). If fed by untrusted user input, like the case of a public-facing LLM application, an attacker may be able to make the agent run malicious commands 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