CVE-2018-10095: Dolibarr Cross-site scripting (XSS) vulnerability

dolibarr/dolibarr Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Moderate
6.1

CVE-2018-10095: Dolibarr Cross-site scripting (XSS) vulnerability. Affects dolibarr/dolibarr versions < 7.0.2. Fixed in 7.0.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Dolibarr is an open-source ERP and CRM system designed for small and medium-sized businesses. It provides various features such as accounting, inventory management, project management, and customer relationship management. Dolibarr is written in PHP and is available as a composer package. However, versions prior to 7.0.2 are vulnerable to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability in Dolibarr allows remote attackers to inject arbitrary web script or HTML through the 'foruserlogin' parameter in the 'adherents/cartes/carte.php' file. This can lead to the execution of malicious code in the context of the user's browser, potentially compromising sensitive information or performing unauthorized actions. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

Minimum fixed version

7.0.2

This is the first release that contains the fix.

composer require dolibarr/dolibarr:7.0.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by sanitizing user input in the affected 'foruserlogin' parameter. This can be done by applying appropriate input validation and output encoding techniques to prevent the execution of malicious scripts. Here is an example of how to sanitize the input in PHP:

$foruserlogin = htmlspecialchars($_GET['foruserlogin'], ENT_QUOTES, 'UTF-8');

Conclusion

The Dolibarr ERP and CRM system prior to version 7.0.2 is vulnerable to a cross-site scripting (XSS) attack. This vulnerability allows remote attackers to inject arbitrary web script or HTML, potentially compromising sensitive information or performing unauthorized actions. To mitigate this risk, it is recommended to upgrade Dolibarr to the latest version and regularly update the software to ensure the latest security fixes are applied. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for dolibarr/dolibarr →

Share this vulnerability

FAQ

Dolibarr is an open-source ERP and CRM system designed for small and medium-sized businesses. It provides various features such as accounting, inventory management, project management, and customer relationship management.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to the execution of arbitrary code in the context of the user's browser, potentially compromising sensitive information or performing unauthorized actions.

The vulnerability in Dolibarr allows remote attackers to inject arbitrary web script or HTML, which can lead to the execution of malicious code in the user's browser. This can result in the compromise of sensitive information, such as login credentials or personal data, and may allow unauthorized actions to be performed on behalf of the user.

To fix this vulnerability, it is recommended to upgrade Dolibarr to version 7.0.2 or later. This version includes a patch that addresses the XSS vulnerability. Users should follow the upgrade instructions provided by the project. Regularly updating the software is also important to ensure the latest security fixes are applied.

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by sanitizing user input in the affected 'foruserlogin' parameter. This can be done by applying appropriate input validation and output encoding techniques to prevent the execution of malicious scripts.

Related vulnerabilities

Recent vulnerabilities recorded for dolibarr/dolibarr.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

7.0.2

This is the first release that contains the fix.

composer require dolibarr/dolibarr:7.0.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback