CVE-2017-9838 Dolibarr Cross-Site Scripting (XSS) vulnerability

Medium 5.4 Published Updated

Attackers can inject malicious scripts via multiple parameters in Dolibarr, potentially stealing user sessions or executing code in victim browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2017-9838?

CVE-2017-9838 is a medium-severity cross-site scripting vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 11 Apr 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Dolibarr ERP/CRM is affected by multiple reflected Cross-Site Scripting (XSS) vulnerabilities in versions before 5.0.4: index.php (leftmenu parameter), core/ajax/box.php (PATH_INFO), product/stats/card.php (type parameter), holiday/list.php (month_create, month_start, and month_end parameters), and don/card.php (societe, lastname, firstname, address, zipcode, town, and email parameters).

Weakness: CWE-79

Which versions are affected by CVE-2017-9838?

2 open source packages ship an affected version, including dolibarr/dolibarr. It affects 1 product.

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions5.0.4
dolibarr/dolibarr PackagistAll versions5.0.4

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2017-9838?

Upgrade dolibarr/dolibarr to 5.0.4 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2017-9838 being exploited?

There is no known exploitation of CVE-2017-9838 in the wild and no public exploit code.

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as GHSA-726g-cgcq-4xw8, UBUNTU-CVE-2017-9838.

Is CVE-2017-9838 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free