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

Status: published. Published: 2026-11-20. Updated: 2026-11-24.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- LibreChat-AI / LibreChat: < 0.8.8 (affected). Source: CNA: GitHub_M

## Severity and prioritization

- CVSS 3.1: 6.3 (medium); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N; source: CNA: GitHub_M

- CVSS 3.1: 6.3 (medium); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.35% as of 2026-11-23; percentile 28.86%

- SSVC: Not available

- Weaknesses: CWE-918

## 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-cgrj (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/LibreChat-AI/LibreChat/pull/16514 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/LibreChat-AI/LibreChat/commit/4d33d8c2c71ad497fdfaa2c4334b0a2293bcbd67 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.8 (CNA: GitHub_M; x_refsource_MISC)

- https://www.librechat.ai/changelog/v0.8.8 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/LibreChat-AI/LibreChat/commit/4d33d8c2c71ad497fdfaa2c4334b0a2293bcbd67 (security-advisories@github.com)

- https://github.com/LibreChat-AI/LibreChat/pull/16514 (security-advisories@github.com)

- https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.8 (security-advisories@github.com)

- https://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-f7xq-83jc-cgrj (security-advisories@github.com)

- https://www.librechat.ai/changelog/v0.8.8 (security-advisories@github.com)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-54031; retrieved 2026-11-20; source updated 2026-11-20

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-54031; retrieved 2026-11-24; source updated 2026-11-24

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-54031; retrieved 2026-11-24; source updated Not reported

Revision: a8a78528a7decc176cc5d6b9554fb5b01ffd3151f385896a70a67a93411a96fe

Canonical: https://y2.dev/cve/CVE-2026-54031

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.