Authenticated OAuth token theft via unbound callback
Published Mar 13, 2026 · Updated Mar 13, 2026
Authentication bypass in Danny Avila LibreChat 0.8.2 through 0.8.2-rc3 allows remote authenticated users to steal MCP OAuth tokens. The MCP callback in api/server/routes/mcp.js trusts the cached flow initiator, exchanges the victim's authorization code, and stores the resulting tokens without authenticating the browser or matching its user to that initiator. Exploitation requires a LibreChat account, an OAuth-enabled MCP server, and victim interaction; resulting access is limited to the linked service's granted OAuth scopes.
Summary
What happened
Authentication bypass in Danny Avila LibreChat 0.8.2 through 0.8.2-rc3 allows remote authenticated users to steal MCP OAuth tokens. The MCP callback in api/server/routes/mcp.js trusts the cached flow initiator, exchanges the victim's authorization code, and stores the resulting tokens without authenticating the browser or matching its user to that initiator. Exploitation requires a LibreChat account, an OAuth-enabled MCP server, and victim interaction; resulting access is limited to the linked service's granted OAuth scopes.
The record
- CVE
- CVE-2026-31944
- Published
- Mar 13, 2026
- Updated
- Mar 13, 2026
- Vendor
- Danny Avila
- Product
- LibreChat
- Classifications
- CWE-306, T1528
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 13, 2026CVE publishedPublication date reported by the CVE source.
- Mar 13, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= v0.8.2, <= 0.8.2-rc3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Vendor-published MCP OAuth callback proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo