# CVE-2026-31944: LibreChat MCP OAuth callback does not validate browser session — allows token theft via redirect link

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/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-13T19:44:30.850Z
- Modified: 2026-06-17T10:34:49.150Z
- Weaknesses: CWE-306
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

LibreChat is a ChatGPT clone with additional features. From 0.8.2 to 0.8.2-rc3, The MCP (Model Context Protocol) OAuth callback endpoint accepts the redirect from the identity provider and stores OAuth tokens for the user who initiated the flow, without verifying that the browser hitting the redirect URL is logged in or that the logged-in user matches the initiator. An attacker can send the authorization URL to a victim; when the victim completes the flow, the victim’s OAuth tokens are stored on the attacker’s LibreChat account, enabling account takeover of the victim’s MCP-linked services (e.g. Atlassian, Outlook). This vulnerability is fixed in 0.8.3-rc1.

(As written by CVE List.)

## Affected

- danny-avila LibreChat: >= v0.8.2, <= 0.8.2-rc3
- librechat librechat: 0.8.2

## References

- <https://github.com/danny-avila/LibreChat/security/advisories/GHSA-vf7j-7mrx-hp7g> (exploit, vendor-advisory)

## Sources

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

---

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