3.1low
Insecure API Design in danny-avila/librechat
- Severity
- 3.1low CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.66% (higher than 47% of CVEs)
- Published
- Last changed
- Assigned by
- @huntr_ai
Description
In danny-avila/librechat version 0.7.9, there is an insecure API design issue in the 2-Factor Authentication (2FA) flow. The system allows users to disable 2FA without requiring a valid OTP or backup code, bypassing the intended verification process. This vulnerability occurs because the backend does not properly validate the OTP or backup code when the API endpoint '/api/auth/2fa/disable' is directly accessed. This flaw can be exploited by authenticated users to weaken the security of their own accounts, although it does not lead to full account compromise.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| danny-avila danny-avila/librechat | from unspecified before v0.8.0-rc2 | CVE List |
| librechat librechat | 0.7.9 | NVD |
All scores
| @huntr_ai | 3.1low CVSS:3.0 | CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In danny-avila/librechat version 0.7.9, there is an insecure API design issue in the 2-Factor Authentication (2FA) flow. The system allows users to disable 2FA without requiring a valid OTP or backup code, bypassing the intended verification process. This vulnerability occurs because the backend does not properly validate the OTP or backup code when the API endpoint '/api/auth/2fa/disable' is directly accessed. This flaw can be exploited by authenticated users to weaken the security of their own accounts, although it does not lead to full account compromise.
NVD (es)
En la versión 0.7.9 de danny-avila/librechat, existe un problema de diseño de API inseguro en el flujo de autenticación de dos factores (2FA). El sistema permite a los usuarios deshabilitar la 2FA sin requerir un código OTP o de respaldo válido, eludiendo el proceso de verificación previsto. Esta vulnerabilidad ocurre porque el backend no valida correctamente el código OTP o de respaldo cuando se accede directamente al endpoint de la API '/api/auth/2fa/disable'. Esta falla puede ser explotada por usuarios autenticados para debilitar la seguridad de sus propias cuentas, aunque no conduce a un compromiso total de la cuenta.
References
| https://huntr.com/bounties/8e615709-f4de-41e2-b194-f0d91ed7c75e | exploit, patch, third-party-advisory | |
| https://github.com/danny-avila/librechat/commit/7e4c8a5d0d2dbe5bf8fd272ff6acafb27d24744f | patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-8850 changed 2025-11-05 | CVE Terms of Use |
| NVD | CVE-2025-8850 changed 2026-10-07 | Public domain |