{"id":"CVE-2026-31018","details":"In Dolibarr ERP & CRM \u003c= 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.","aliases":["GHSA-676v-wh57-p375"],"modified":"2026-07-08T07:46:54.191982889Z","published":"2026-04-21T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31018.json"},"references":[{"type":"WEB","url":"https://github.com/PhDg1410/CVE/blob/main/CVE-2026-31018/README.md"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31018.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31018"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dolibarr/dolibarr","events":[{"introduced":"0"},{"last_affected":"4f6e636e7e2aea1abde2c2b6f6ac4ffd34429f7f"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:dolibarr:dolibarr_erp\\/crm:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"22.0.4"}]}}],"versions":["22.0.4","22.0.3","22.0.2","22.0.1","22.0.0","14.0.0","14.0.1","6.0.0-beta","5.0.0-beta","4.0.0-rc","3.8.0-beta","3.7.1","3.7.0","3.6.2","3.6.1","3.6.0","3.6.0-beta","3.6.beta1_20140514","3.6.0-alpha","3.5.beta1_20131120","3.5.beta1_20131106","3.4.beta1_20130502","3.4.beta1_20130429","3.3.beta1_20121221"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31018.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}