CVE-2019-16197 Cross-site scripting in Dolibarr

Medium 6.1 Published Updated

Attackers can inject malicious scripts via the User-Agent header in Dolibarr, potentially leading to session hijacking or code execution.

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-2019-16197?

CVE-2019-16197 is a medium-severity cross-site scripting vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 16 Sep 2019. 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

In htdocs/societe/card.php in Dolibarr 10.0.1, the value of the User-Agent HTTP header is copied into the HTML document as plain text between tags, leading to XSS.

Weakness: CWE-79

Which versions are affected by CVE-2019-16197?

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

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions10.0.2
dolibarr/dolibarr PackagistAll versions10.0.2

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2019-16197?

Upgrade dolibarr/dolibarr to 10.0.2 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-2019-16197 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as GHSA-m553-9wmx-533h, UBUNTU-CVE-2019-16197.

Is CVE-2019-16197 in your software?

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

Check your SBOMs for free