CVE-2026-28438: Cocoindex CocoIndex Doris Target Connector Didn't Vulnerability

HIGH
Advisory Identifier: GHSA-59g6-v3vg-f7wc
CWE-89
Published
Advisory Summary

CVE-2026-28438 is a HIGH cocoindex doris target connector didn't vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Cocoindex libraries in the PyPI ecosystem. The issue involves cocoindex doris target connector didn't verify table name when constructing alter table statements. Remediation is available by upgrading affected packages to version 0.3.34.

CVE-2026-28438 at a Glance

CVE Identifier CVE-2026-28438
GHSA Identifier GHSA-59g6-v3vg-f7wc
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Cocoindex
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-28438

To remediate this vulnerability, upgrade all affected Cocoindex dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

cocoindex fixed: 0.3.34
pip install cocoindex>=0.3.34
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show cocoindex

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-28438, inspect your installed packages using pip:

pip show cocoindex

Analyze the terminal output to locate any version of Cocoindex in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.34), your application is affected.

Note: The pip show cocoindex command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Cocoindex, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The Doris target connector didn't verify the configured table name before creating some SQL statements (`ALTER TABLE`). So, in the application code, if the table name is provided by an untrusted upstream, it expose vulnerability to SQL injection when target schema change. ### Patches Yes, it's fixed in cocoindex 0.3.34: we start to validate table names passed to Doris target at entry point and error out immediately if it's not a valid identifier. ### Workarounds Users should make sure table names used to configure CocoIndex targets are valid, regardless of this fix. Which means - The table name comes from a trusted source (e.g. for most cases it's just a fixed string literal). - Even if it comes from an untrusted source (e.g. provided by end user), it should be validated before using it to configure the Doris target for CocoIndex.

CVE-2026-28438 Affected Cocoindex Versions

1 component(s)
Fixed Versions:
0.3.34
Product / Package Ecosystem Affected Versions Fixed Version
cocoindex
PyPI
< 0.3.34
0.3.34

References

Frequently Asked Questions

What is CVE-2026-28438?
CVE-2026-28438 is a security vulnerability in Cocoindex involving CocoIndex Doris target connector didn't verify table name when constructing ALTER TABLE statements under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Cocoindex versions are affected?
Affected versions include releases prior to 0.3.34 across affected packages: cocoindex.
What version fixes CVE-2026-28438?
Upgrading to 0.3.34 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cocoindex affected?
Yes, cocoindex is affected in releases prior to 0.3.34. Upgrade your dependency to 0.3.34 or later.
What CWE is associated with CVE-2026-28438?
CVE-2026-28438 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check PyPI dependencies for CVE-2026-28438?
Run the dependency tree command: 'pip show cocoindex'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-59g6-v3vg-f7wc",
  "modified" : "2026-03-06T21:56:32Z",
  "published" : "2026-03-02T20:27:48Z",
  "aliases" : [ "CVE-2026-28438" ],
  "summary" : "CocoIndex Doris target connector didn't verify table name when constructing ALTER TABLE statements",
  "details" : "### Impact\nThe Doris target connector didn't verify the configured table name before creating some SQL statements (`ALTER TABLE`). So, in the application code, if the table name is provided by an untrusted upstream, it expose vulnerability to SQL injection when target schema change.\n\n### Patches\nYes, it's fixed in cocoindex 0.3.34: we start to validate table names passed to Doris target at entry point and error out immediately if it's not a valid identifier.\n\n### Workarounds\nUsers should make sure table names used to configure CocoIndex targets are valid, regardless of this fix. Which means\n\n- The table name comes from a trusted source (e.g. for most cases it's just a fixed string literal).\n- Even if it comes from an untrusted source (e.g. provided by end user), it should be validated before using it to configure the Doris target for CocoIndex.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cocoindex"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.34"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cocoindex-io/cocoindex/security/advisories/GHSA-59g6-v3vg-f7wc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-28438"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cocoindex-io/cocoindex/commit/ba2fc4a89e22d35572c64bd2990737c7913b0729"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cocoindex-io/cocoindex"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-02T20:27:48Z",
    "nvd_published_at" : "2026-03-06T07:15:58Z"
  }
}