Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-54760
Published:July 09, 2026
Updated:July 21, 2026
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 "\s*\(". PostgreSQL accepts the same call with the name separated from "(" by a quoted identifier, an inline comment, or schema qualification. These forms evade the regex, still parse as "SELECT", and execute the same PostgreSQL function. This restores the "pg_read_file" server-side file-read primitive that the prior CVE-2026-25879 / GHSA-pmch-g965-grmr fix was meant to block: the parent advisory fixed a missing "pg_read_file" blocklist entry, while this report shows that the added regex is bypassable. Version 0.65.1 fixes the issue.
Affected Packages
langroid (PYTHON):
Affected version(s) >=0.1.8 <0.65.1
Fix Suggestion:
Update to version 0.65.1
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
EPSS
Base Score:
0.65