CVE-2025-41258 LibreChat RAG API Authentication Bypass

High 8.0 Published Updated

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.

All Librechat Librechat vulnerabilities

Sources

Also known as GHSA-jhr8-wf3f-76ph.

Is CVE-2025-41258 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free