CVE-2026-31018 Dolibarr Allows Code Injection through its Website Module
Authenticated users with HTML editing rights can inject PHP code via unprotected inputs in the Website module, leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-31018?
CVE-2026-31018 is a high-severity code injection vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2026-31018?
2 open source packages ship an affected version, including dolibarr/dolibarr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
dolibarr/dolibarr Packagist | All versions to 15.0.3 | None |
dolibarr/dolibarr Packagist | All versions to 15.0.3 | None |
Products include Dolibarr Dolibarr Erp\/Crm.
How do I fix CVE-2026-31018?
No fix has been published for CVE-2026-31018 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-31018 being exploited?
There is no known exploitation of CVE-2026-31018 in the wild and no public exploit code.
Other vulnerabilities in Dolibarr Dolibarr Erp\/Crm
Sources
Also known as GHSA-676v-wh57-p375, UBUNTU-CVE-2026-31018.