Intel

AIKIDO-2026-939441

langroid is vulnerable to Improper Authorization

GHSA-2j3c-5vm9-xppxPublished Jul 30, 2026
July 30, 2026

81

CVE Score

High

Improper Authorization

Are you affected? Scan for Free

TL;DR

RecipientTool and AddRecipientTool re-emit their untrusted content as a new ChatDocument labeled as coming from the LLM, which clears the taint flag that marks user-origin messages. Because the re-emitted document is treated as trusted, embedded tool calls survive the filter that normally blocks untrusted input from invoking handle-only tools. This lets untrusted chat content trigger tools such as file read and write, SQL execution, and internal orchestration that were never meant to be reachable from user input. The fix propagates the originating message taint into the re-emitted document so laundered content stays blocked.

How do I fix this?

Upgrade the langroid library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you enable RecipientTool or AddRecipientTool routing while also registering handle-only tools reachable through untrusted chat input.

Package

Versions

0.0.1 - 0.65.10

Fixed in 0.65.11

Background info

langroid is vulnerable to Improper Authorization in versions 0.0.1 - 0.65.10.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea