5.3medium
LibreChat's lack of JSON parsing error handling can lead to XSS
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
LibreChat is a ChatGPT clone with additional features. In versions 0.8.0 and below, there is no handler for JSON parsing errors; SyntaxError from express.json() includes user input in the error message, which gets reflected in responses. User input (including HTML/JavaScript) can be exposed in error responses, creating an XSS risk if Content-Type isn't strictly enforced. This issue does not have a fix at the time of publication.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| danny-avila LibreChat | <= 0.8.1 | CVE List |
| librechat librechat | up to 0.8.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
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. In versions 0.8.0 and below, there is no handler for JSON parsing errors; SyntaxError from express.json() includes user input in the error message, which gets reflected in responses. User input (including HTML/JavaScript) can be exposed in error responses, creating an XSS risk if Content-Type isn't strictly enforced. This issue does not have a fix at the time of publication.
NVD (es)
LibreChat es un clon de ChatGPT con características adicionales. En las versiones 0.8.0 e inferiores, no hay un gestor para errores de análisis JSON; SyntaxError de express.json() incluye la entrada del usuario en el mensaje de error, lo que se refleja en las respuestas. La entrada del usuario (incluyendo HTML/JavaScript) puede quedar expuesta en las respuestas de error, creando un riesgo de XSS si el Content-Type no se aplica estrictamente. Este problema no tiene una solución en el momento de la publicación.
References
| https://github.com/danny-avila/LibreChat/security/advisories/GHSA-q6c5-gvj5-c264 | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66452 changed 2025-12-12 | CVE Terms of Use |
| NVD | CVE-2025-66452 changed 2026-10-07 | Public domain |