CVE-2026-54026: LibreChat: Cross-User Message Injection via Parameter Confusion
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.6, POST /api/messages/:conversationId authorizes req.params.conversationId in api/server/middleware/validateMessageReq.js but persists attacker-controlled req.body.conversationId through api/server/routes/messages.js. An authenticated attacker can use an owned conversation in the URL while naming a victim conversation in the body, causing an attacker-controlled message to be stored in the victim conversation. This issue is fixed in version 0.8.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.8.6
Event History
Frequently Asked Questions
Who can exploit this issue?
Any authenticated LibreChat user can exploit it, provided they have an existing conversation they own to supply in the request URL. The attacker does not need to interact with another user.
Which deployments are affected?
LibreChat versions before 0.8.6 are affected. The vulnerable endpoint is POST /api/messages/:conversationId.
What is the impact of successful exploitation?
An attacker can cause an attacker-controlled message to be stored in another user's conversation. The provided severity vector indicates integrity impact, with no stated confidentiality or availability impact.
How can administrators determine whether an instance may have been affected?
Review messages in user conversations for content that does not match the conversation owner's activity, particularly where the message may have been submitted through POST /api/messages/:conversationId using a different conversation ID in the request body. The available information does not provide a specific log signature or detection method.
What should be done if the instance is running a vulnerable version?
Upgrade LibreChat to version 0.8.6, which fixes the issue. No alternative mitigation is specified in the provided information.