# CVE-2026-81728: Dolibarr SQL injection in CSV/XLSX import wizard

Source: https://junglewise.ai/threats/cve-2026-81728-dolibarr-sql-injection-in-csv-xlsx-import-wizard  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-27. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-81728 · Severity: high · CVSS 8.1 · Published 2026-08-27

Dolibarr is an open-source ERP and CRM system used by businesses to manage contacts, invoices, orders, and accounting. This vulnerability allows users with import permissions to inject SQL commands through the CSV/XLSX import feature, potentially exposing sensitive business data from the database or modifying records during import operations.

Technologies: [Dolibarr Crm](https://junglewise.ai/threats/technologies/crm), [Dolibarr](https://junglewise.ai/threats/technologies/dolibarr), [Dolibarr Erp\](https://junglewise.ai/threats/technologies/dolibarr-erp). Vendors: [Dolibarr](https://junglewise.ai/threats/vendors/dolibarr).

## Quick answers

**Is CVE-2026-81728 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-81728 being exploited in the wild.

**How severe is CVE-2026-81728?** High severity, with a CVSS score of 8.1, published 27 August 2026.

**Which products and versions are affected?** Dolibarr before 24.0.0.

**Is there a fix for CVE-2026-81728?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-81728 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-81728?** Check whether you run Dolibarr Crm, Dolibarr or Dolibarr Erp\ at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A SQL injection vulnerability exists in the CSV and XLSX import wizard (htdocs/imports/import.php and htdocs/core/modules/import/import_csv.modules.php). The vulnerability arises because the wizard reads user-supplied update keys via GETPOST('updatekeys', 'array') and applies only a basic HTML strip filter that leaves SQL syntax intact. The import_insert() function then constructs WHERE clauses by concatenating these keys directly into SQL queries without parameterized statements. An attacker can inject UNION SELECT statements to exfiltrate arbitrary table content; the attacker-controlled integer result redirects which rows are updated. The attack requires the import permission but no other authentication bypass. The fix (allowlist validation of column codes) was added in version 24.0.0; versions before 24.0.0, including 23.0.4, are vulnerable.

## Affected products

- Dolibarr Dolibarr before 24.0.0

## Timeline

- 2026-08-27: disclosed

## References

- [https://github.com/Dolibarr/dolibarr](https://github.com/Dolibarr/dolibarr)
- [https://github.com/Dolibarr/dolibarr/blob/23.0.4/htdocs/core/modules/import/import_csv.modules.php](https://github.com/Dolibarr/dolibarr/blob/23.0.4/htdocs/core/modules/import/import_csv.modules.php)

## Related threats

- [Dolibarr authorization bypass in expense report payments API](https://junglewise.ai/threats/cve-2026-125754-dolibarr-20-0-0-through-23-0-4-and-24-x-before-24-0-2-contains)
- [Dolibarr CSP mechanism bypass in document.php](https://junglewise.ai/threats/cve-2026-112361-a-vulnerability-has-been-found-in-dolibarr-up-to-23-0-2-the)
- [Dolibarr authorization bypass in document storage endpoints](https://junglewise.ai/threats/cve-2026-89013-dolibarr-authorization-bypass-in-document-storage-endpoints)
- [Dolibarr case-sensitive denylist bypass in sqlfilters API](https://junglewise.ai/threats/cve-2026-89012-dolibarr-case-sensitive-denylist-bypass-in-sqlfilters-api)
- [Dolibarr Legacy File Manager improper access control](https://junglewise.ai/threats/cve-2026-85401-dolibarr-legacy-file-manager-improper-access-control)
