CVE-2017-17971 Dolibarr ERP and CRM contain XSS Vulnerability

Medium 6.1 Published Updated

Insufficient input filtering in Dolibarr allows attackers to inject malicious scripts via onclick or onscroll attributes, leading to cross-site scripting.

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

What is CVE-2017-17971?

CVE-2017-17971 is a medium-severity cross-site scripting vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 29 Dec 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The test_sql_and_script_inject function in htdocs/main.inc.php in Dolibarr ERP/CRM 6.0.4 blocks some event attributes but neither onclick nor onscroll, which allows XSS.

Weakness: CWE-79

Which versions are affected by CVE-2017-17971?

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

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions6.0.5
dolibarr/dolibarr PackagistAll versions6.0.5

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2017-17971?

Upgrade dolibarr/dolibarr to 6.0.5 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-17971 being exploited?

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

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as GHSA-qjq9-wx5j-jrg6, UBUNTU-CVE-2017-17971.

Is CVE-2017-17971 in your software?

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

Check your SBOMs for free