CVE-2026-31951: LibreChat's MCP Server Header Injection Enables OAuth Token Theft

Published Mar 27, 2026
·
Updated

LibreChat is a ChatGPT clone with additional features. In versions 0.8.2-rc1 through 0.8.3-rc1, user-created MCP (Model Context Protocol) servers can include arbitrary HTTP headers that undergo credential placeholder substitution. An attacker can create a malicious MCP server with headers containing {{LIBRECHATOPENIDACCESSTOKEN}} (and others), causing victims who call tools on that server to have their OAuth tokens exfiltrated. Version 0.8.3-rc2 fixes the issue.

Affected Software

3 affected components
librechat librechat>=0.8.2-rc1<=0.8.3-rc1
librechat librechat>=0.8.2<0.8.3
librechat librechat=0.8.3-rc1

Event History

Mar 27, 2026
CVE Published
via MITRE·07:29 PM
Data Sourced
via MITRE·07:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-31951?

CVE-2026-31951 is classified as a medium severity vulnerability due to its potential for OAuth token theft.

2

How do I fix CVE-2026-31951?

To fix CVE-2026-31951, update LibreChat to the latest version that addresses this vulnerability.

3

What versions of LibreChat are affected by CVE-2026-31951?

CVE-2026-31951 affects LibreChat versions 0.8.2-rc1 through 0.8.3-rc1.

4

What is the impact of CVE-2026-31951 on user data?

CVE-2026-31951 can lead to unauthorized access to user OAuth tokens, compromising user authentication.

5

Is there a workaround for CVE-2026-31951 if I cannot update?

Currently, there is no documented workaround for CVE-2026-31951, so it's recommended to apply the update as soon as possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203