CVE-2025-8850: Insecure API Design in danny-avila/librechat
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 Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-8850?
CVE-2025-8850 is classified as a high severity vulnerability due to its potential to bypass security controls in the 2-Factor Authentication process.
How do I fix CVE-2025-8850?
To resolve CVE-2025-8850, update to the latest version of danny-avila/librechat where the insecure API design issue has been addressed.
What is the impact of CVE-2025-8850?
The impact of CVE-2025-8850 allows unauthorized users to disable 2FA, compromising account security.
Who is affected by CVE-2025-8850?
Users of danny-avila/librechat version 0.7.9 are affected by CVE-2025-8850.
When was CVE-2025-8850 disclosed?
CVE-2025-8850 was disclosed in 2025, along with the associated risks and recommended mitigations.