Vulnerabilities in pkg:pypi/cocoindex
PACKAGECVE-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.
pkg:pypi/cocoindex
Vulnerability advisories affecting package pkg:pypi/cocoindex. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-59g6-v3vg-f7wc | CVE-2026-28438 | HIGH | CocoIndex Doris target connector didn't verify table name when constructing ALTER TABLE statements |
CVE-2026-28438 at a Glance
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.
pip install cocoindex>=0.3.34
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
CVE-2026-28438 Affected Cocoindex Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cocoindex
|
PyPI |
< 0.3.34
|
0.3.34
|
References
Frequently Asked Questions
What is CVE-2026-28438?
Which Cocoindex versions are affected?
What version fixes CVE-2026-28438?
Is cocoindex affected?
What CWE is associated with CVE-2026-28438?
How can I check PyPI dependencies for CVE-2026-28438?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}