Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-54040: LibreChat is an enhanced ChatGPT clone that supports multiple AI providers

30
Routine
MEDIUM 5.9UPGRADE

CVE-2026-54040 is a medium-severity flaw (CVSS 5.9) affecting librechat. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/auth/2fa/backup/regenerate endpoint regenerates all 2FA backup codes without requiring any TOTP token or existing backup code verification. An attacker with a stolen session token can silently replace a victim's backup codes and use them to bypass 2FA login or disable 2FA entirely. This vulnerability is fixed in 0.8.4-rc1.

Why this priority

  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score5.9 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededLow
User interactionNone
EPSS exploit chance0.3% (top 83%)
CISA exploited listNo
WeaknessCWE-306
Published2026-06-25
Last modified2026-10-25
Publisher (CNA): GitHub, Inc. · Vendor: librechat

Share: LinkedIn · X · Reddit

Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

librechat librechat UPGRADE
Affected: <= 0.8.3
Fixed in: newer than 0.8.3
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy librechat || rpm -q librechat || librechat --version
2. UPGRADE to newer than 0.8.3 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade librechat
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade librechat
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-54040?

librechat: upgrade to newer than 0.8.3. Exact commands for each OS are on this page.

Is CVE-2026-54040 being exploited?

CVE-2026-54040 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-54040 affect?

CVE-2026-54040 affects librechat. Severity is medium (CVSS 5.9). LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.4-rc1, the POST /api/auth/2fa/backup/regenerate endpoint regenerates all 2FA backup codes without requiring any TOTP token or existing backup code veri

How urgent is CVE-2026-54040?

Priority 30/100. Public exploit reference

Software pages

OpenAI ChatGPT vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.