CVE-2025-41258: LibreChat RAG API Authentication Bypass

Published Mar 18, 2026
·
Updated

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.

Affected Software

2 affected components
LibreChat
librechat librechat=0.8.1-rc2

Event History

Mar 18, 2026
CVE Published
via MITRE·11:08 AM
Data Sourced
via MITRE·11:08 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-41258?

CVE-2025-41258 is a high severity vulnerability due to its potential for authentication bypass.

2

How does CVE-2025-41258 affect LibreChat?

CVE-2025-41258 affects LibreChat by allowing unauthorized access to the RAG API, compromising the authentication process.

3

How do I fix CVE-2025-41258?

To fix CVE-2025-41258, you should update to a patched version of LibreChat that uses a unique JWT secret for the user session and RAG API.

4

Is there a workaround for CVE-2025-41258?

A temporary workaround for CVE-2025-41258 includes implementing additional access controls on the RAG API until an official patch is released.

5

What versions of LibreChat are affected by CVE-2025-41258?

CVE-2025-41258 affects LibreChat version 0.8.1-rc2 and potentially other versions that utilize the same JWT secret for authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203