CVE-2025-66452 LibreChat's lack of JSON parsing error handling can lead to XSS
MediumCVSS 5.3
EPSS 0.23%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| LibreChat | <= 0.8.0 | after 0.8.0 | Fixed |
| danny-avila LibreChat | = <= 0.8.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| danny-avila LibreChat | = <= 0.8.1 | No fix listed |
| LibreChat | <= 0.8.0 | No fix listed |
References
- https://github.com/danny-avila/LibreChat/security/advisories/GHSA-q6c5-gvj5-c264 exploit vendor-advisory