{"id":"CVE-2026-85689","summary":"llmware 0.4.6 SQL Injection via unescaped filter values","details":"llmware 0.4.6 contains an SQL injection vulnerability in the collection-database layer (llmware/resources.py) where filter and lookup values are directly string-interpolated into SQL WHERE clauses without parameterization or escaping, in both the SQLite and PostgreSQL backends. The filter validator only checks keys against an allow-list and never sanitizes values. Attacker-controlled filter values reaching the public API via Library.block_lookup and Query.text_query_with_custom_filter / text_query_by_author_or_speaker can neutralize the intended filter to disclose rows the caller was scoped out of (cross-document/cross-collection disclosure); on PostgreSQL the flaw permits boolean- and UNION-based SQL injection.","modified":"2026-09-06T03:47:20.264029665Z","published":"2026-09-04T14:32:33.799Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85689.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85689.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85689"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/llmware-0.4.6-sql-injection-via-unescaped-filter-values"},{"type":"REPORT","url":"https://github.com/llmware-ai/llmware/issues/1304"},{"type":"PACKAGE","url":"https://github.com/llmware-ai/llmware"},{"type":"ARTICLE","url":"https://github.com/llmware-ai/llmware/blob/v0.4.6/llmware/resources.py"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/llmware-ai/llmware","events":[{"introduced":"0"},{"last_affected":"556641378153f913f647725529e6f824f0dc8ba5"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"0.4.6"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.4.6","v0.4.5","v0.4.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85689.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}]}