GitHub Advisoryadvisory · Packagist
GHSA-676v-wh57-p375 Dolibarr Allows Code Injection through its Website Module
HIGH
Official page ↗
- Aliases
- CVE-2026-31018
- Ecosystem
- Packagist
- Packages
- dolibarr/dolibarr
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2026-04-25
Affected packages
• Packagist dolibarr/dolibarr: <= 15.0.3 (no fix yet)
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.
A patch is available at https://github.com/Dolibarr/dolibarr/releases/tag/23.0.0.
Related
Alias · CVE (1)
- CVE-2026-31018 In Dolibarr ERP & CRM <= 22.0.4, PHP code detection and editing permission enforcement in the Website module is not applied consistently to… vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-31018 advisory
- https://github.com/Dolibarr/dolibarr/commit/ba28d16da4cc0c221f49a878fecc8425501ceb96 web
- https://github.com/Dolibarr/dolibarr package
- https://github.com/Dolibarr/dolibarr/releases/tag/23.0.0 web
- https://github.com/PhDg1410/CVE/blob/main/CVE-2026-31018/README.md web
- http://dolibarr.com web