CVE-2024-34051 Reflected Cross-Site Scripting (XSS) in Dolibarr

Medium 4.6 Published Updated

Remote attackers can inject arbitrary web script or HTML via the facid parameter in Dolibarr, potentially leading to session hijacking or malicious actions.

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-2024-34051?

CVE-2024-34051 is a medium-severity cross-site scripting vulnerability in n/a, published on 3 Jun 2024. 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 Reflected Cross-site scripting (XSS) vulnerability located in htdocs/compta/paiement/card.php of Dolibarr before 19.0.2 allows remote attackers to inject arbitrary web script or HTML via a crafted payload injected into the facid parameter.

Weakness: CWE-79

Which versions are affected by CVE-2024-34051?

2 open source packages ship an affected version, including dolibarr/dolibarr.

PackageAffectedFixed in
dolibarr/dolibarr PackagistAll versions19.0.2
dolibarr/dolibarr PackagistAll versions19.0.2

How do I fix CVE-2024-34051?

Upgrade dolibarr/dolibarr to 19.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-2024-34051 being exploited?

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

Sources

Also known as GHSA-hv2j-6654-x74q, UBUNTU-CVE-2024-34051.

Is CVE-2024-34051 in your software?

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

Check your SBOMs for free