CVE-2021-42220 Dolibarr Cross Site Scripting (XSS) vulnerability

Medium 5.4 Published Updated

An attacker can execute arbitrary scripts in Dolibarr if an admin copies a malicious payload into a box, potentially leading to session hijacking or code execution.

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-2021-42220?

CVE-2021-42220 is a medium-severity cross-site scripting vulnerability in n/a, published on 15 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A Cross Site Scripting (XSS) vulnerability exists in Dolibarr before 14.0.3 via the ticket creation flow. Exploitation requires that an admin copies the payload into a box.

Weakness: CWE-79

Which versions are affected by CVE-2021-42220?

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

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions14.0.3
dolibarr/dolibarr PackagistAll versions14.0.3

Products include Dolibarr Dolibarr.

How do I fix CVE-2021-42220?

Upgrade dolibarr/dolibarr to 14.0.3 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-2021-42220 being exploited?

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

Sources

Also known as GHSA-jqfp-m5f8-vg28, UBUNTU-CVE-2021-42220.

Is CVE-2021-42220 in your software?

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

Check your SBOMs for free