CVE-2026-54031
JSON

6.3medium

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

Severity
6.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.55% (higher than 47% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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

Product or packageVersionsReported by
LibreChat-AI LibreChat< 0.8.8CVE List

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54031 changed 2026-11-25CVE Terms of Use
NVDCVE-2026-54031 changed 2026-11-25Public domain