SQL Injection Mitigation Flaw in Langroid Framework by Langroid
CVE-2026-54760

9.3CRITICAL

Key Information:

Vendor

Langroid

Status
Vendor
CVE Published:
9 July 2026

What is CVE-2026-54760?

The Langroid framework, prior to version 0.65.1, features a vulnerability in its SQLChatAgent SQL-injection mitigation mechanism. The default settings with allow_dangerous_operations=False utilize a blocklist of raw-text regex patterns in conjunction with a SELECT-only statement allowlist. However, this setup is insufficient as it allows crafted SQL calls with various separators—such as quoted identifiers or inline comments—that bypass the regex protections. This loophole exposes sensitive operations, including the ability to read server-side files using the pg_read_file function, thus undermining the integrity of the SQL injection prevention measures intended by earlier security edits. Users are urged to upgrade to version 0.65.1 to mitigate this issue.

Affected Version(s)

langroid < 0.65.1

References

CVSS V4

Score:
9.3
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.