Skip to content

CVE-2026-130848 CVE-2026-130847

Dolibarr ERP CRM code injection and REST API authorization flaws (CVE-2026-130848, CVE-2026-130847)

High 8.7 Vendor: Dolibarr Published

Two high-severity flaws affect Dolibarr ERP CRM: code injection through website template import (through 24.0.3) and improper authorization in the Users REST API (before 24.0.2). Both can lead to code execution or admin takeover. Apply Dolibarr's fixes and review website editor and API permissions.

What happened

CVE-2026-130848 is a code injection vulnerability in Dolibarr's website template import. A website editor without PHP permission can import a template zip whose javascript.js.php file contains PHP code. Because the public javascript.js.php endpoint then includes that file, the code runs as the web server user. The CVSS 4.0 score is 8.7, high, with network attack vector, low privileges and no user interaction.

CVE-2026-130847 is an improper authorization flaw in the Users REST API. An authenticated API user with user-modification and password rights can send a PUT request to the users endpoint with a chosen pass value for a SuperAdmin account, then log in as that administrator. Its CVSS 4.0 score is 8.6, high, requiring high privileges but no user interaction.

Neither CVE has a CISA KEV entry, and the CVE records do not report exploitation or public disclosure.

Who is affected

Dolibarr ERP CRM is affected through version 24.0.3 for CVE-2026-130848, and before 24.0.2 for CVE-2026-130847. In practice, an instance on an affected release is exposed to the relevant flaw if website template import is available to editors, or if the Users REST API is enabled and API users hold user modification and password rights. Dolibarr is often self-hosted, so patching is the operator's responsibility.

What to do now

  1. Apply Dolibarr's updates. For CVE-2026-130847 the confirmed fixed release is Dolibarr ERP CRM 24.0.2. For CVE-2026-130848, the CVE record indicates a fix is available but does not supply a fixed version; obtain the current fixed build from Dolibarr and apply it.
  2. Restrict the Users REST API to trusted administrators. Remove user modification and password rights from non-admin API accounts, and rotate SuperAdmin passwords if there is any sign of suspicious PUT activity.
  3. Review website editor roles and remove template import permissions where they are not needed. Inspect any imported template zips, especially those containing javascript.js.php, before use.
  4. If patching is not immediately possible, limit network access to the REST API and the website import functionality and monitor the logs described below. The vendor advisory does not list workarounds.

How to detect it

Review REST API logs for PUT requests to the users endpoint by accounts without full administrator rights, particularly requests that change a pass value for SuperAdmin. For the template import flaw, inspect imported website template zips for a javascript.js.php file containing PHP code, and check which website editor accounts performed imports. Confirm SuperAdmin password changes match authorised activity.

Beyond the patch

These two Dolibarr flaws show how import and API rights in self-hosted ERP and CRM can become stepping stones to code execution or administrator takeover. Implementation & Assessment Services can test for injection and authorization gaps and harden the deployment, while Supply Chain Defense & Third-Party Risk helps track which open-source ERP versions you run and whether the vendor's patch cycle leaves you exposed.

Affected and fixed versions

ProductAffectedFixed in
CVE-2026-130848
Dolibarr ERP CRM
– ≤ 24.0.3No fixed version listed yet
CVE-2026-130847
Dolibarr ERP CRM
– < 24.0.224.0.2

References

Sources: the CVE record (MITRE), NVD, CISA KEV and SSVC, ENISA EUVD, FIRST EPSS and the vendor's own advisory. Scores and dates are shown as those sources publish them.

Written with AI assistance from the sources above and checked automatically against them before publication.