CVE-2026-54031
LibreChat: MCP OAuth requests can follow redirects to internal URLs after SSRF validation
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.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| LibreChat LibreChat-AI |
< 0.8.8 (affected) | CNA: GitHub_M |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 6.3 medium |
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N | CNA: GitHub_M |
| 3.1 / 6.3 medium |
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-f7xq-83jc-cgrjCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/LibreChat-AI/LibreChat/pull/16514CNA: GitHub_M · x_refsource_MISC
- https://github.com/LibreChat-AI/LibreChat/commit/4d33d8c2c71ad497fdfaa2c4334b0a2293bcbd67CNA: GitHub_M · x_refsource_MISC
- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.8CNA: GitHub_M · x_refsource_MISC
- https://www.librechat.ai/changelog/v0.8.8CNA: GitHub_M · x_refsource_MISC
- https://github.com/LibreChat-AI/LibreChat/commit/4d33d8c2c71ad497fdfaa2c4334b0a2293bcbd67[email protected]
- https://github.com/LibreChat-AI/LibreChat/pull/16514[email protected]
- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.8[email protected]
- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-f7xq-83jc-cgrj[email protected]
- https://www.librechat.ai/changelog/v0.8.8[email protected]
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.