CVE-2025-41258: danny-avila LibreChat · Improper Access Control
Affects danny-avila LibreChatSource CVE Database V5
Not known to be exploited · CVSS 8.0 High.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 18 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| danny-avilaLibreChat | Affected
| Fixed in– |
GitHubdanny-avila/LibreChatpkg:github/danny-avila/LibreChatOther threats | Affected
| Fixed in– |
GitHubLibreChatpkg:github/LibreChatOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2025-41258, organizations should immediately update their LibreChat deployment to a version where this vulnerability is fixed or apply a custom patch that separates JWT secrets for user sessions and the RAG API. This separation ensures that compromise of one token type does not affect the other authentication domain. Additionally, implement strict access control policies on the RAG API, including network segmentation and IP whitelisting where possible. Employ monitoring and logging of JWT usage and API access patterns to detect anomalous activity. Use short-lived JWT tokens and rotate secrets regularly to limit the window of exploitation. If upgrading is not immediately possible, consider disabling or restricting access to the RAG API until a fix is applied. Finally, conduct a thorough security review of authentication mechanisms to prevent similar secret reuse issues.
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.