CVE-2021-42220 Dolibarr Cross Site Scripting (XSS) vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
dolibarr/dolibarr Packagist | All versions | 14.0.3 |
dolibarr/dolibarr Packagist | All versions | 14.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.
Other vulnerabilities in n/a
- CVE-2019-19212 Dolibarr Cross-site Scripting via the qty parameter in product/fournisseurs.php
- CVE-2018-16809 Dolibarr SQL injection via the integer parameters qty and value_unit
- CVE-2018-10094 Dolibarr SQL injection vulnerability
- CVE-2018-9019 Dolibarr SQL Injection vulnerability
- CVE-2017-14238 Dolibarr SQL injection vulnerability in admin/menus/edit.php
Sources
Also known as GHSA-jqfp-m5f8-vg28, UBUNTU-CVE-2021-42220.