CVE-2023-5842 Cross-site Scripting (XSS) - Stored in dolibarr/dolibarr

Medium 4.8 Published Updated

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

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

What is CVE-2023-5842?

CVE-2023-5842 is a medium-severity cross-site scripting vulnerability in Dolibarr Dolibarr Erp\/Crm, published on 30 Oct 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Cross-site Scripting (XSS) - Stored in GitHub repository dolibarr/dolibarr prior to 16.0.5.

Weakness: CWE-79

Which versions are affected by CVE-2023-5842?

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

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions16.0.5
dolibarr/dolibarr PackagistAll versions16.0.5
dolibarr BitnamiAll versions16.0.5

Products include Dolibarr Dolibarr Erp\/Crm.

How do I fix CVE-2023-5842?

Upgrade dolibarr/dolibarr to 16.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-2023-5842 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-5842 exists.

All Dolibarr Dolibarr Erp\/Crm vulnerabilities

Sources

Also known as BIT-dolibarr-2023-5842, GHSA-9pjf-jw9q-fx49.

Is CVE-2023-5842 in your software?

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

Check your SBOMs for free