6.9medium
CocoIndex Doris target connector didn't verify table name when constructing ALTER TABLE statements
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-59g6-v3vg-f7wcPYSEC-2026-2133
Description
CocoIndex is a data transformation framework for AI. Prior to version 0.3.34, 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. This issue has been patched in version 0.3.34.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| cocoindex-io cocoindex | < 0.3.34 | CVE List |
| cocoindex (PyPI) | before 0.3.34 | GitHub Advisory Database, PyPA Advisory Database |
| cocoindex cocoindex | before 0.3.34 | NVD |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
CocoIndex is a data transformation framework for AI. Prior to version 0.3.34, 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. This issue has been patched in version 0.3.34.
GitHub Advisory Database
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.
NVD (es)
CocoIndex es un framework de transformación de datos para IA. Antes de la versión 0.3.34, el conector de destino de Doris no verificaba el nombre de tabla configurado antes de crear algunas sentencias SQL (ALTER TABLE). Así, en el código de la aplicación, si el nombre de la tabla es proporcionado por una fuente no confiable, expone una vulnerabilidad a la inyección SQL cuando el esquema de destino cambia. Este problema ha sido parcheado en la versión 0.3.34.
References
| https://github.com/cocoindex-io/cocoindex/security/advisories/GHSA-59g6-v3vg-f7wc | advisory, mitigation, vendor-advisory, web | |
| https://github.com/cocoindex-io/cocoindex/commit/ba2fc4a89e22d35572c64bd2990737c7913b0729 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-28438 | advisory | |
| https://github.com/cocoindex-io/cocoindex | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-28438 changed 2026-03-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-59g6-v3vg-f7wc changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-28438 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2133 changed 2026-07-13 | CC-BY-4.0 |