Security Resilience

CVE-2025-8850

Librechat 0.7.9

Public PoC
Published
30 October 2025
Modified
07 October 2026
Patch / advisory
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0042 36th percentile
Risk Priority 64 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-8850 is a high-severity Expected Behavior Violation (CWE-440) vulnerability in Librechat. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 36th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as LLM Application Platforms; in the Not Applicable risk domain.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-6 (Security and Privacy Function Verification) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

AI Security AnalysisAI

AI Category
LLM Application Platforms
Risk Domain
Not Applicable
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: librechat

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-11172Same product: Librechat Librechat
CVE-2024-11173Same product: Librechat Librechat
CVE-2026-31949Same product: Librechat Librechat
CVE-2025-66451Same product: Librechat Librechat
CVE-2024-10359Same product: Librechat Librechat
CVE-2025-7104Same product: Librechat Librechat
CVE-2024-11171Same product: Librechat Librechat
CVE-2026-54024Same product: Librechat Librechat
CVE-2026-54037Same product: Librechat Librechat
CVE-2024-11169Same product: Librechat Librechat

Affected Assets

librechat
librechat
0.7.9

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation directly checks whether implemented functions match their specifications.

Security function verification confirms that functions operate according to their defined expected behavior.

Requiring a documented security architecture and design reduces the chance that implementation deviates from intended behavior.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 full match
blocks

Secure SDLC practices directly enforce specification compliance and catch expected-behavior violations during development.

ID.IM-02 partial match
blocks

Security testing and exercises help discover behavior deviations before deployment.

ID.RA-01 partial match
blocks

Vulnerability identification can surface spec-violating flaws, while eliminating the weakness reduces some vulnerability backlog.

PR.PS-02 partial match
blocks

Routine software maintenance and patching can remediate discovered specification violations.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development and acceptance validates that functions behave as specified.

prevents

Training helps developers better understand and adhere to specifications, reducing some expected-behavior violations, but the defect is a code-level implementation choice that general awareness training only partially addresses — most such violations arise from subtle misunderstandings of specific specs that training cannot fully prevent.

prevents

Secure coding practices enforce adherence to functional specifications during implementation.

prevents

A.8.30's contractual requirements for secure design, coding and testing practices (item b, referencing 8.25-8.29) and its acceptance testing for quality and accuracy of deliverables (item d) reduce some instances of specification-mismatch defects in outsourced software, but CWE-440 is broader than ordinary software CWEs -- it includes hardware design issues (as in the Hack@DAC RISC-V demonstrative example), subtle logic errors, and specification ambiguities that contractual requirements and acceptance testing cannot reach.

finds

Change management can catch specification deviations introduced by modifications.

References