CVE-2026-54760: Vulnerability in langroid

Critical. Langroid is a framework for building large-language-model-powered applications. Prior to version 0.65.1, the SQLChatAgent SQL-injection mitigation, with default allow_dangerous_operations=False, combines a raw-text regex blocklist (_DANGEROUS_SQL_PATTERNS) with a sqlglot SELECT-only statement allowlist. The blocklist entries that target callable functions require the function name to be immediately followed by...

PyPI, CWE-22, CWE-89

Exploitation
None confirmed
Severity
9.3 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-6xc5-4r68-67fc
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-22, CWE-89
Published
6 Jul 2026
Last change
10 Jul 2026
Ecosystem
PyPI

Affected packages

Vulnerable version ranges and fixed releases

  • langroid PyPI, Affected through 0.65.0. Fixed in 0.65.1

Advisories

Vendor and security advisories