CVE-2025-41258 LibreChat RAG API Authentication Bypass
Attackers can bypass RAG API authentication by exploiting a shared JWT secret, compromising service-level access controls in LibreChat.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-41258?
CVE-2025-41258 is a high-severity authentication bypass vulnerability in Librechat Librechat, published on 18 Mar 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
LibreChat version 0.8.1-rc2 uses the same JWT secret for the user session mechanism and RAG API which compromises the service-level authentication of the RAG API.
Weakness: CWE-284
Which versions are affected by CVE-2025-41258?
It affects 1 product.
Products include Librechat Librechat.
How do I fix CVE-2025-41258?
No fix has been published for CVE-2025-41258 yet. Limit exposure of the affected software until one is available.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2025-41258 being exploited?
There is no known exploitation of CVE-2025-41258 in the wild and no public exploit code.
Other vulnerabilities in Librechat Librechat
- CVE-2026-32625 LibreChat Exfiltrates Server Secrets via MCP Server URL Injection
- CVE-2024-11167 Improper Access Control in danny-avila/librechat
- CVE-2026-22252 LibreChat MCP Stdio Remote Command Execution
- CVE-2025-69222 LibreChat is vulnerable to Server-Side Request Forgery due to missing restrictions
- CVE-2024-41704 Path traversal in n/a
Sources
Also known as GHSA-jhr8-wf3f-76ph.