Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Medium 6.3CVE-2026-54031

LibreChat: MCP OAuth requests can follow redirects to internal URLs after SSRF validation

Published 20/11/2026 · Updated 25/11/2026 · LibreChat-AI LibreChat

Description

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.8, packages/api/src/mcp/oauth/handler.ts createOAuthFetch validates only the initial destination for MCP OAuth discovery, registration, token, refresh, and revocation requests, then uses redirect-following fetch behavior without validating each redirect target. An attacker who can initiate MCP OAuth against a controlled endpoint can redirect server requests to internal or private addresses, reaching services that the initial SSRF checks should block. The separate MCP transport path already validates redirects and is not affected. This issue is fixed in version 0.8.8.

Affected products and versions

LibreChat-AI LibreChat< 0.8.8

CVSS vector, explained

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

Attack vector
Network (from the internet)
Attack complexity
High
Privileges required
Regular user
User interaction
Not required
Scope
Affects other components
Confidentiality
High impact
Integrity
None
Availability
None

Weakness type (CWE)

  • CWE-918 Server-Side Request Forgery

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.