CVE-2020-7994: Dolibarr cross-site scripting (XSS) vulnerability

dolibarr/dolibarr Updated 02 Oct 2025

Summary

24/05/2022
No i
Moderate
6.1

CVE-2020-7994: Dolibarr cross-site scripting (XSS) vulnerability. Affects dolibarr/dolibarr versions 10.0.6. No fix is published. How to fix ↓

Also tracked for

The same CVE-2020-7994 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Dolibarr is an open-source ERP and CRM software designed for small and medium-sized businesses. It provides a range of features including accounting, inventory management, customer relationship management, and more. Dolibarr is widely used by organizations to streamline their business processes and improve efficiency. However, a cross-site scripting (XSS) vulnerability has been discovered in Dolibarr version 10.0.6, which could potentially allow remote attackers to inject malicious web script or HTML into the application.

Vulnerability Detail

The vulnerability exists in multiple pages of Dolibarr, including dict.php, const.php, company.php, defaultvalues.php, translation.php, and ihm.php. Attackers can exploit this vulnerability by injecting arbitrary web script or HTML through various parameters. This could lead to the execution of malicious code in the context of the affected user's browser, potentially compromising sensitive information or performing unauthorized actions. The severity of this vulnerability is rated as MODERATE with a CVSS score of 6.1.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If upgrading to a patched version is not immediately possible, users can implement a temporary workaround by applying input validation and sanitization measures to the affected parameters. This can help mitigate the risk of XSS attacks. Here is an example of how to sanitize user input in PHP:

$label = htmlspecialchars($_GET['label']);
$name = htmlspecialchars($_GET['name']);
$note = htmlspecialchars($_GET['note']);
$zip = htmlspecialchars($_GET['zip']);
$email = htmlspecialchars($_GET['email']);
$url = htmlspecialchars($_GET['url']);
$key = htmlspecialchars($_GET['key']);
$value = htmlspecialchars($_GET['value']);
$motd = htmlspecialchars($_GET['motd']);
$home = htmlspecialchars($_GET['home']);

By using the htmlspecialchars function, special characters are converted to their HTML entities, preventing them from being interpreted as code.

Conclusion

The cross-site scripting (XSS) vulnerability in Dolibarr version 10.0.6 poses a moderate security risk. It is crucial for users to update their Dolibarr installation to version 10.0.7 or later to mitigate this vulnerability. Regularly checking for updates and applying them promptly is essential for maintaining the security of the application. 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 software designed for small and medium-sized businesses. It provides a range of features including accounting, inventory management, customer relationship management, and more.

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 affected user's browser.

The vulnerability in Dolibarr could allow remote attackers to inject arbitrary web script or HTML, potentially leading to the execution of malicious code in the user's browser. This could result in the compromise of sensitive information or unauthorized actions.

To fix this vulnerability, it is recommended to upgrade to a patched version of Dolibarr (version 10.0.7 or later). Regularly checking for updates and applying them promptly is crucial for maintaining the security of the application.

If upgrading to a patched version is not immediately possible, users can implement input validation and sanitization measures to mitigate the risk of XSS attacks. This involves properly sanitizing user input before using it in the application.

Related vulnerabilities

Recent vulnerabilities recorded for dolibarr/dolibarr.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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