{"id":"CVE-2026-54040","aliases":["CVE-2026-54040"],"related":[],"kind":"vulnerability","state":"published","title":"LibreChat: 2FA Backup Code Regeneration Without OTP Verification Allows 2FA Bypass","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"LibreChat es un clon mejorado de ChatGPT que soporta múltiples proveedores de IA. Previo a la 0.8.4-rc1, el endpoint POST /api/auth/2fa/backup/regenerate regenera todos los códigos de respaldo 2FA sin requerir ningún token TOTP o verificación de código de respaldo existente. Un atacante con un token de sesión robado puede reemplazar silenciosamente los códigos de respaldo de una víctima y usarlos para eludir el inicio de sesión 2FA o deshabilitar completamente el 2FA. Esta vulnerabilidad está corregida en la versión 0.8.4-rc1.","source":"nvd"}],"published":"2026-06-25T15:45:23.953Z","modified":"2026-10-25T22:10:00.150Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-306"],"affected":[{"ranges":[{"version":"< 0.8.4-rc1","status":"affected"}],"vendor":"danny-avila","product":"LibreChat","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"0.8.3"}],"vendor":"librechat","product":"librechat","cpe":"cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/danny-avila/LibreChat/security/advisories/GHSA-h59w-x9h4-m6gv","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-25T18:12:54.587Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54040","url":"https://www.cve.org/CVERecord?id=CVE-2026-54040","licence":"CVE Terms of Use","modified":"2026-06-25T18:13:32.543Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54040","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54040","licence":"Public domain","modified":"2026-10-25T22:10:00.150Z"}],"updatedAt":"2026-11-25T22:59:26.386Z","epss":{"score":0.00177,"percentile":0.07643,"date":"2026-12-01T12:00:22.000Z"}}