1. Home
  2. Vulnerabilities
  3. CVE-2026-54031

CVE-2026-54031

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

Published 20 Nov 2026 · modified 25 Nov 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Medium 42/100

Summary

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 (1 line(s))
LibreChat-AI
ProductVersionsFixed inSource
LibreChat Versions not specified — CNA (vendor or assigner)

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

Exploit reported by sources

These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N (CVSS 3.1, CNA:GitHub_M)
Weakness
CWE-918 · Requête côté serveur (SSRF) / CSRF

How this data is obtained and calculated