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.
Published: 2026-07-09
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Raw JSON data is treated as a tool call without verifying the source, allowing any tool registered with handle=True to be invoked by malicious input. This flaw aligns with CWE‑75, an insecure handling of user‑supplied input that can lead to exploitation. An attacker can craft a JSON payload that the system executes as a tool request, potentially enabling the use of arbitrary tools and causing harmful effects in the application.

Affected Systems

The flaw appears in Langroid versions earlier than 0.65.3. Versions prior to 0.65 expose a chat interface to untrusted users and register tools with use=False and handle=True, making them vulnerable. Updating to 0.65.3 or later eliminates the vulnerability. The affected product is the langroid:langroid framework.

Risk and Exploitability

The CVSS score of 8.1 indicates a high impact vulnerability. However, the EPSS score of < 1 % suggests a very low likelihood of exploitation in the wild, and the flaw is not listed in the CISA KEV catalog. Attackers would most likely exploit the vulnerability by sending malicious JSON payloads directly to the chat endpoint; no prior authentication or privilege is required for the exploitation. The attack vector is inferred from the exposed interface.

Generated by OpenCVE AI on August 3, 2026 at 04:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Langroid framework to version 0.65.3 or later to apply the vendor patch that fixes the tools that should not be invoked by untrusted input, and verify the sender of tool requests before input (CWE‑75).
  • Implement logging and monitoring of tool invocation events on the chat interface to detect and respond to suspicious activity.
  • Disable the registration of tools that should not be invoked by untrusted input by setting use=False and handle=False until the patch is applied, and enforce authentication on the chat interface to limit who can send raw JSON payloads.

Generated by OpenCVE AI on August 3, 2026 at 04:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gjgq-w2m6-wr5q Langroid: handle_message() executes user-supplied tool JSON without sender verification
History

Fri, 10 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
First Time appeared Langroid
Langroid langroid
Vendors & Products Langroid
Langroid langroid

Fri, 10 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
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.
Title Langroid: handle_message() executes user-supplied tool JSON without sender verification
Weaknesses CWE-75
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Langroid Langroid
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-10T14:23:23.640Z

Reserved: 2026-06-15T23:23:57.713Z

Link: CVE-2026-54771

cve-icon Vulnrichment

Updated: 2026-07-10T14:20:03.721Z

cve-icon NVD

Status : Deferred

Published: 2026-07-10T00:16:33.737

Modified: 2026-07-10T15:49:19.093

Link: CVE-2026-54771

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T04:30:18Z

Weaknesses
  • CWE-75

    Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)