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

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T19:29:25.892Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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 `{{LIBRECHAT_OPENID_ACCESS_TOKEN}}` (and others), causing victims who call tools on that server to have their OAuth tokens exfiltrated. Version 0.8.3-rc2 fixes the issue.

(As written by CVE List.)

## Affected

- danny-avila LibreChat: >= v0.8.2-rc1, <= v0.8.3-rc1
- librechat librechat: from 0.8.2 before 0.8.3; 0.8.3

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/danny-avila/LibreChat/security/advisories/GHSA-pmw7-gqwj-f954> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-31951](https://www.cve.org/CVERecord?id=CVE-2026-31951), CVE Terms of Use, modified 2026-03-31
- NVD: [CVE-2026-31951](https://nvd.nist.gov/vuln/detail/CVE-2026-31951), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-31951 · Whole record: https://cve.day/CVE-2026-31951.json · Rebuilt by cve.day 2026-11-25T22:59:17.423Z
