CVE-2026-54771 Langroid: handle_message() executes user-supplied tool JSON without sender verification
Attackers can execute arbitrary tools via raw JSON payloads in Langroid chat interfaces, bypassing sender verification controls.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-54771?
CVE-2026-54771 is a high-severity code injection vulnerability in langroid, published on 9 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Langroid is a framework for building large-language-model-powered applications. Prior to version 0.65.3, a Langroid application exposing a chat interface to untrusted users may allow direct tool invocation via raw JSON payloads, even when tools are registered with `use=False, handle=True`. Version 0.65.3 fixes the issue.
Weakness: CWE-75
Which versions are affected by CVE-2026-54771?
3 open source packages ship an affected version, including langroid.
| Package | Affected | Fixed in |
|---|---|---|
langroid PyPI | All versions | 0.65.3 |
langroid PyPI | All versions | 0.65.3 |
langroid PyPI | All versions | 0.65.3 |
How do I fix CVE-2026-54771?
Upgrade langroid to 0.65.3 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-54771 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54771 exists.
Sources
Also known as GHSA-gjgq-w2m6-wr5q, PYSEC-2026-2579.