NetSight
medium6.3

CVE-2026-54031

LibreChat is an enhanced ChatGPT clone that supports multiple AI providers.

Impact

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.

An attacker can exploit this over the network, with a regular user account, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read. The attack can reach beyond the vulnerable component itself.

Affected products

VendorProductAffected versions
Danny-avilaLibreChat
before 0.8.8
LibreChat-AILibreChat
Version < 0.8.8

Weakness classification

References