iteratec Blog

CVE-2025-54868 vulnerability in LibreChat

Written by Joel Saß | Oct 13, 2026, 8:06:11 AM
 

Chatbots based on large language models (LLMs) have now become an integral part of everyday work in many organisations. However, they raise a problem: how can employees use LLM systems in a way that respects data protection?

Contents
  1. Why is this security vulnerability important?
  2. Detection and mitigation
  3. Timeline
  4. Why has a CVE been assigned even though a patch is available?
  5. Next steps

 

Many companies rely on LibreChat, a popular open-source platform with around 33,000 GitHub stars, which makes various language models (including self-hosted ones) available via a unified interface.

During a penetration test of a LibreChat-based application, we discovered a security vulnerability in LibreChat that had gone undetected for over two years. It grants unauthorised parties unrestricted read access to conversations and thus poses specific risks to data protection, compliance and the confidentiality of sensitive data.

Why is this security vulnerability significant?

LibreChat is frequently used in organisations to provide staff with an AI-based chat platform featuring a data protection-compliant infrastructure. This often results in chats containing:

  • Personal data, e.g. enquiries from employees
  • Internal project information, such as strategies and roadmaps
  • Sensitive keys, e.g. API tokens, passwords

The vulnerability results in:

  1. Targeted data mining, e.g. searches for ‘password’ or ‘token’.
  2. Social engineering attacks; contact details or user information may be misused.
  3. Breaches of the GDPR if personal data is handled incorrectly.
References:

The vulnerability lies in the test endpoint /api/search/test, which is exposed and inadequately secured in the default configuration of LibreChat. Using a simple GET request, attackers can retrieve all chat data, regardless of whether they created the chat themselves. A filter parameter (q=...) even allows targeted searches for terms such as ‘password’ or ‘secret’.

 

An example scenario:

  1. A user shares confidential information in a chat:

  2. An attacker uses the endpoint /api/search/test with a Bearer token from another account:

GET /api/search/test?q=secrets
Host: <Host>
Authorization: Bearer <Token>

  1. Result: The endpoint returns the requested chat, including sensitive data:

[
{
"_id": "<Redacted>",
"text": "==I will tell you some <em>secrets</em> now: Parrots are my favourite animal!==",
"conversationId": "<redacted>",
"searchResult": true
}
]

Detection and defence

The direct fix is already available in versions >= v0.7.8: Organisations should definitely upgrade to this version, as the relevant commit removes the inadequately secured endpoint.

Systems that cannot be updated immediately should disable the endpoint by manually blocking it via a reverse proxy configuration or a web application firewall (WAF).

The vulnerability can be identified by a targeted analysis of the system logs. As the endpoint /api/search/test is not accessed during normal use of LibreChat, any access to this endpoint constitutes an unusual event that requires attention.

Timeline

  • 18 March 2023: Security vulnerability introduced (Commit: 4e6168d)
  • 29 April 2025: Patch released (Commit 0e8041b)
  • 9 July 2025: Security vulnerability independently discovered and verified by iteratec
  • 10 July 2025: Security vulnerability reported to LibreChat
  • 28 July 2025: LibreChat maintainers activated the GitHub Security Advisory System to create a CVE
  • 4 August 2025: CVE-2025-54868 published

Why a CVE, even though a patch is available?

Although the patch was already available at the time the vulnerability was reported to LibreChat, the vulnerability was fixed quietly and without transparency. The release note merely mentioned“simplify logic in search/enable endpoint”(Commit: 0e8041b).

Publishing this as a CVE clearly communicates its security significance. This enables organisations to prioritise the vulnerability and check whether they are affected.

Next steps

  • Update nowand upgradeLibreChat to v0.7.8 or later.
  • Check whether /api/search/test is no longer accessible.
  • Analyse the logs for access attempts involving sensitive search terms.

 

Do you have any questions or need assistance?

At iteratec, we place great importance on security. With expertise such as application penetration testing, we help companies to systematically identify, prioritise and rectify vulnerabilities. Our reports not only contain reproducible, step-by-step analyses, but also specific recommendations on how development teams can improve the security of their applications in the long term.