CVE-2026-31018 Dolibarr Allows Code Injection through its Website Module

High 8.8 Published Updated

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.

Weakness: CWE-94, CWE-284

Which versions are affected by CVE-2026-31018?

2 open source packages ship an affected version, including dolibarr/dolibarr. It affects 1 product.

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions to 15.0.3None
dolibarr/dolibarr PackagistAll versions to 15.0.3None

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.

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as GHSA-676v-wh57-p375, UBUNTU-CVE-2026-31018.

Is CVE-2026-31018 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free