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

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-20T20:13:31.991Z
- Modified: 2026-11-25T05:18:36.757Z
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- LibreChat-AI LibreChat: < 0.8.8

## References

- <https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-f7xq-83jc-cgrj> (exploit)
- <https://github.com/LibreChat-AI/LibreChat/pull/16514>
- <https://github.com/LibreChat-AI/LibreChat/commit/4d33d8c2c71ad497fdfaa2c4334b0a2293bcbd67>
- <https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.8>
- <https://www.librechat.ai/changelog/v0.8.8>

## Sources

- CVE List: [CVE-2026-54031](https://www.cve.org/CVERecord?id=CVE-2026-54031), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-54031](https://nvd.nist.gov/vuln/detail/CVE-2026-54031), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-54031 · Whole record: https://cve.day/CVE-2026-54031.json · Rebuilt by cve.day 2026-11-25T23:17:37.734Z
