CVE-2026-31018: Dolibarr Allows Code Injection through its Website Module
In Dolibarr ERP & CRM <= 22.0.4, PHP code detection and editing permission enforcement in the Website module is not applied consistently to all input parameters, allowing an authenticated user restricted to HTML/JavaScript editing to inject PHP code through unprotected inputs during website page creation. A patch is available at https://github.com/Dolibarr/dolibarr/releases/tag/23.0.0.
Published Apr 21, 2026 · Updated Apr 25, 2026
Affected packages
dolibarr/dolibarr
- Ecosystem
- Composer (PHP)
- Affected
- <= 15.0.3
- Fixed in
- No patched version yet
- Check
composer show dolibarr/dolibarr
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
In Dolibarr ERP & CRM <= 22.0.4, PHP code detection and editing permission enforcement in the Website module is not applied consistently to all input parameters, allowing an authenticated user restricted to HTML/JavaScript editing to inject PHP code through unprotected inputs during website page creation.
A patch is available at https://github.com/Dolibarr/dolibarr/releases/tag/23.0.0.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-31018
- https://github.com/PhDg1410/CVE/blob/main/CVE-2026-31018/README.md
- https://github.com/Dolibarr/dolibarr/commit/ba28d16da4cc0c221f49a878fecc8425501ceb96
- https://github.com/Dolibarr/dolibarr/releases/tag/23.0.0
- https://github.com/advisories/GHSA-676v-wh57-p375
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-33944
Dolibarr has SQL Injection in societe/class/societe.class.php via localtax1_value parameter
high8.8Oct 27, 2026CVE-2026-10215
Dolibarr ERP CRM is vulnerable to Improper Authorization through its Leave Request REST API
low4.3No fixJun 1, 2026CVE-2018-25357
Dolibarr ERP CRM contains a remote code evaluation vulnerability
critical9.8May 26, 2026CVE-2026-7688
Dolibarr has an Injection issue
low5.0No fixMay 3, 2026CVE-2026-7689
Dolibarr has Insufficient Verification of Data Authenticity
low3.7No fixMay 3, 2026CVE-2026-31019
Dolibarr user with permission to edit PHP content can bypass filtering to restrict dangerous PHP functions
high8.8No fixApr 21, 2026
