CVE-2026-54771 Langroid: handle_message() executes user-supplied tool JSON without sender verification

High 8.1 Published Updated

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.

PackageAffectedFixed in
langroid PyPIAll versions0.65.3
langroid PyPIAll versions0.65.3
langroid PyPIAll versions0.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.

Is CVE-2026-54771 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free