SQL Injection Mitigation Flaw in Langroid Framework by Langroid
CVE-2026-54760
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
