8.5high
LibreChat has SSRF protection bypass via IPv4-mapped IPv6 normalization in isPrivateIP
- Severity
- 8.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| danny-avila LibreChat | < 0.8.3 | CVE List |
| librechat librechat | before 0.8.3, 0.8.3 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
LibreChat es un clon de ChatGPT con características adicionales. Antes de la versión 0.8.3, ’isPrivateIP()’ en ’packages/api/src/auth/domain.ts’ no detecta direcciones IPv6 mapeadas a IPv4 en su forma hexadecimal normalizada, permitiendo a cualquier usuario autenticado eludir la protección SSRF y hacer que el servidor emita solicitudes HTTP a recursos de red internos - incluyendo servicios de metadatos en la nube (p. ej., AWS ’169.254.169.254’), loopback y rangos RFC1918. La versión 0.8.3 corrige el problema.
References
| https://github.com/danny-avila/LibreChat/security/advisories/GHSA-w5r7-4f94-vp4c | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31943 changed 2026-03-31 | CVE Terms of Use |
| NVD | CVE-2026-31943 changed 2026-10-26 | Public domain |