{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.4.6"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "556641378153f913f647725529e6f824f0dc8ba5"
            }
          ],
          "repo": "https://github.com/llmware-ai/llmware",
          "type": "GIT"
        }
      ]
    }
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-85689",
  "modified": "2026-09-06T03:30:48.007437178Z",
  "published": "2026-09-04T14:32:33.799Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "llmware 0.4.6 SQL Injection via unescaped filter values"
}