CVE-2026-54031 - LibreChat: MCP OAuth requests can follow redirects to internal URLs after SSRF validation

Vulnerability · Reported by NVD · · CWE-918

Severity
Medium Risk score 63/100
CVSS
6.3 v3.1 · from NVD
Exploit chance (EPSS)
0.55% Higher than 39% of CVEs
Known exploited
No Not in CISA KEV

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.

How this vulnerability can be exploited

This is a server-side request forgery (SSRF) flaw (CWE-918). An attacker can exploit this vulnerability remotely over the network, with a low-privileged account, and without any action from a user. Attack complexity is high, meaning specific conditions must exist first. If successful, the attacker could read sensitive data. The impact can spread beyond the vulnerable component to other parts of the system.

Is it being exploited?

The EPSS model estimates a 0.55% chance this CVE will be exploited in the next 30 days, which is low and higher than 39% of all published CVEs.

Patch priority and what to do

Patch during routine updates. Lower severity, but keep it on your list. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.

CVSS vector

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

See what each part means in the official CVSS calculator ↗

Tags

CVE-2026-54031

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.