Servers and applications
CVE-2026-54026
Cross-User Message Injection via Parameter Confusion in LibreChat
- Severity
- Medium 6.5
- Published
- 17 Nov 2026
- Last changed
- 17 Nov 2026
- Added to UpHeron
- 17 Nov 2026
- Fixed in
- 0.8.6
- Weakness
- Improper access control (CWE-284)Authorization bypass through a user-controlled key (IDOR) (CWE-639)
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Change data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Also known as
- GHSA-7w78-4qpx-xhfg
- Sources
- Project advisories (GitHub)
Description
A parameter confusion vulnerability exists in LibreChat's message creation endpoint that allows an authenticated attacker to inject messages into another user's private conversation.
The authorization middleware (validateMessageReq.js) validates conversation ownership using req.params.conversationId from the URL path. However, the message handler (messages.js) consumes req.body.conversationId from the request body when saving the message to the database. These two values are never cross-validated.
The middleware and handler operate on different sources for the same logical parameter. The middleware confirms the authenticated user owns the conversation identified in the URL, but the handler writes the message to whichever conversation is specified in the request body -- which is never checked for ownership.
The code assumes that req.params.conversationId (validated) and req.body.conversationId (consumed) will always refer to the same conversation.
Affected software
| Software | Affected versions |
|---|---|
LibreChatServers and applications · github:librechat-ai/librechat |
|
About LibreChat
Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
- Docker Hub pulls
- 669,094Docker Hub, 15 Nov 2026
- GitHub stars
- 47,138GitHub, 15 Nov 2026
- Forks
- 9,706GitHub, 15 Nov 2026
- License
- MITGitHub
- First published on GitHub
- 12 Feb 2023GitHub
Source code Website Docker image
Vulnerabilities in LibreChat
- In our list
- 104
- Published in the last 12 months
- 84
- Critical, last 12 months
- 5
- High, last 12 months
- 25
- Known exploited
- 0
- CVE-2026-54041Plaintext password logged on login validation errorLow 3.1 17 Nov 2026
- CVE-2026-54032Remote MCP Server Description XSS via Unsanitized dangerouslySetInnerHTML; secondary Admin Banner sink lacks DOMPurifyMedium 6.1 17 Nov 2026
- CVE-2026-54031MCP OAuth requests can follow redirects to internal URLs after SSRF validationMedium 6.3 17 Nov 2026
- CVE-2026-54038Server-Side ReDoS via Unescaped Regex in Principal SearchMedium 6.5 17 Nov 2026
- CVE-2026-54045Password Reset Can Wipe Email-Verification Tokens When Verification Is EnforcedMedium 6.5 17 Nov 2026
- CVE-2026-54046Unauthenticated User Enumeration via Email Verification EndpointMedium 5.3 17 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54026
- GitHub Advisory Database https://github.com/advisories/GHSA-7w78-4qpx-xhfg
- github.com https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-7w78-4qpx-xhfg