Skip to content

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

HighCVSS 7.6 EPSS 0.29%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 0 fixed.

PackageAffectedFixed inStatus
danny-avila LibreChat = >= v0.8.2, <= 0.8.2-rc3 No fix listed Versions listed
LibreChat = 0.8.2; = 0.8.2-rc1; = 0.8.2-rc2; = 0.8.2-rc3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
danny-avila LibreChat = >= v0.8.2, <= 0.8.2-rc3 No fix listed
LibreChat = 0.8.2 No fix listed
LibreChat = 0.8.2-rc1 No fix listed
LibreChat = 0.8.2-rc2 No fix listed
LibreChat = 0.8.2-rc3 No fix listed

References