AnythingLLM — Sql Injection (CVE-2026-32628)
Date: 2026-03
Affected: mintplexlabs/anythingllm
Attack vector: sql-injection
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2026-32628
CWE: CWE-89
CVSS: 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)

AnythingLLM is an application that turns pieces of content into context that any LLM can use as references during chatting. In 1.11.1 and earlier, a SQL injection vulnerability in the built-in SQL Agent plugin allows any user who can invoke the agent to execute arbitrary SQL commands on connected databases. The getTableSchemaSql() method in all three database connectors (MySQL, PostgreSQL, MSSQL) constructs SQL queries using direct string concatenation of the table_name parameter without sanitization or parameterization.


Mitigations:

Architectural layers (MAESTRO):