CVE-2018-16808
Description
Dolibarr through 7.0.0 contains stored XSS in the expense reports module via the comments parameter or public/private notes.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Dolibarr through 7.0.0 contains stored XSS in the expense reports module via the comments parameter or public/private notes.
Vulnerability
Dolibarr versions 3.8.x through 7.0.0 are affected by a stored cross-site scripting (XSS) vulnerability in the expense reports module, specifically in expensereport/card.php. The comments parameter and both public and private note fields fail to sanitize user input, allowing an attacker to inject arbitrary JavaScript code that is stored and later executed when the affected page is viewed [1][2][3].
Exploitation
An attacker must have valid credentials to log into the Dolibarr instance and navigate to the expense reports feature. From there, the attacker can craft a POST request with malicious JavaScript in the comments parameter or in the public/private note fields. The injected script is stored in the database and rendered without encoding when any user (including administrators) views the expense report, triggering the payload in their browser [1][2].
Impact
Successful exploitation results in stored XSS. The attacker can execute arbitrary JavaScript in the context of the victim's session, potentially leading to session hijacking, theft of sensitive data, or further actions within the application as the victim. The impact is limited to actions available to the user whose session is compromised [1][3].
Mitigation
According to the reference issue, the vulnerability was addressed by the vendor in a subsequent release after the disclosure. Users should upgrade to a patched version (later than 7.0.0). No workaround other than upgrading is described in the provided references [1][2].
- [Versions < 7.X] Disclosure of [CVE-2018-16809] SQL injection + [CVE-2018-16808] multiple XSS in expense reports
- GitHub - Dolibarr/dolibarr: Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
- NVD - CVE-2018-16808
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
dolibarr/dolibarrPackagist | < 7.0.1 | 7.0.1 |
Affected products
2Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-r3r5-fqfm-9wrhghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-16808ghsaADVISORY
- github.com/Dolibarr/dolibarr/issues/9449ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.