SecurityContext

CVE-2026-54040: LibreChat - Authentication Bypass

  • Cve: CVE-2026-54040
  • Name: LibreChat - Authentication Bypass
  • Description: 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.
  • Impact: Attackers with stolen session tokens can bypass or disable 2FA, compromising account security.
  • Remediation: Update to version 0.8.4-rc1 or later.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: broken_authentication
  • Requirement type: logged_in
  • Requirements: Attacker needs a stolen session token
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N
  • Epss score: 0.00258
  • Epss percentile: 0.17572
  • Assignee: [email protected]
  • Published at: 2026-06-25T17:16:41Z
  • Age in days: 152
  • Modified at: 2026-10-25T22:10:00Z
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-54040
  • Nvd status: analyzed
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-306Missing Authentication for Critical Functionality

Public exploits

UrlSourceAdded date
https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gvnvd2026-06-25

References

UrlSourceTags
https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gvnvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
librechat:librechat<= 0.8.3nonvd/v1/products/librechat/librechat

Projects

RepositoryLink kindsIndexedUrl
danny-avila/librechatsecurity_advisoryyes/v1/repositories/danny-avila/librechat

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-06-25
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 3609
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports