CVE-2026-31943

LibreChat has SSRF protection bypass via IPv4-mapped IPv6 normalization in isPrivateIP

Published Mar 27, 2026 CVSS 3.1 · 8.5 High EPSS < 1% KEV · Not listed
Description
LibreChat is a ChatGPT clone with additional features. Prior to version 0.8.3, `isPrivateIP()` in `packages/api/src/auth/domain.ts` fails to detect IPv4-mapped IPv6 addresses in their hex-normalized form, allowing any authenticated user to bypass SSRF protection and make the server issue HTTP requests to internal network resources — including cloud metadata services (e.g., AWS `169.254.169.254`), loopback, and RFC1918 ranges. Version 0.8.3 fixes the issue.

Analysis

AI-generated

Technical impact

The flaw resides in the isPrivateIP function, which fails to recognize IPv4‑mapped IPv6 addresses written in their hex‑normalized form. An authenticated user can craft a request that disguises a private IPv4 address as an IPv6 literal, thereby bypassing the server‑side request forgery (SSRF) filter. The server will then resolve the address and send an HTTP request to target internal network resources, including cloud metadata services, loopback interfaces, and RFC1918 ranges. This allows an attacker to read internal data, obtain sensitive configuration or authentication credentials, and potentially pivot to other internal services.

Affected Systems

LibreChat, managed by danny‑avila, is affected in all releases prior to version 0.8.3, including the 0.8.3‑rc1 and 0.8.3‑rc2 builds. The issue is resolved in 0.8.3 and later versions.

Risk and Exploitability

The vulnerability has a CVSS score of 8.5, indicating high severity. EPSS is reported below 1%, suggesting low current exploit activity, but the flaw is not listed in the CISA KEV catalog. Attackers must be authenticated to the service; through the protected API, they can send a crafted request that makes the server reach internal IP addresses. The successful exploitation could expose confidential data and enable lateral movement within the internal network.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade LibreChat to version 0.8.3 or later to apply the fix.
  • Verify that SSRF protection is functioning after the update by testing requests to private IP addresses.
  • If an upgrade cannot be performed immediately, restrict API input to disallow IPv4‑mapped IPv6 addresses or block access to internal IP ranges until the patch is applied.

Generated by OpenCVE AI on March 31, 2026 at 06:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Librechat
Librechat librechat
CPEs cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*
cpe:2.3:a:librechat:librechat:0.8.3:rc1:*:*:*:*:*:*
cpe:2.3:a:librechat:librechat:0.8.3:rc2:*:*:*:*:*:*
Vendors & Products Librechat
Librechat librechat
Type Values Removed Values Added
First Time appeared Danny-avila
Danny-avila libre Chat
Vendors & Products Danny-avila
Danny-avila libre Chat
Type Values Removed Values Added
Description LibreChat is a ChatGPT clone with additional features. Prior to version 0.8.3, `isPrivateIP()` in `packages/api/src/auth/domain.ts` fails to detect IPv4-mapped IPv6 addresses in their hex-normalized form, allowing any authenticated user to bypass SSRF protection and make the server issue HTTP requests to internal network resources — including cloud metadata services (e.g., AWS `169.254.169.254`), loopback, and RFC1918 ranges. Version 0.8.3 fixes the issue.
Title LibreChat has SSRF protection bypass via IPv4-mapped IPv6 normalization in isPrivateIP
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 31, 2026, 7:10 PM
Reserved
Mar 10, 2026, 3:10 PM
Status
Modified
Published
Mar 27, 2026, 8:16 PM
Modified
Oct 26, 2026, 9:10 PM