CVE-2025-66452: LibreChat's lack of JSON parsing error handling can lead to XSS
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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-66452?
CVE-2025-66452 has a moderate severity due to the potential for reflected cross-site scripting (XSS) attacks.
How do I fix CVE-2025-66452?
To fix CVE-2025-66452, upgrade to LibreChat version 0.8.1 or higher, which includes proper error handling for JSON parsing.
What are the potential risks associated with CVE-2025-66452?
The risks include exposure to XSS attacks that can lead to data theft or manipulation if user input is improperly handled.
Which versions of LibreChat are affected by CVE-2025-66452?
CVE-2025-66452 affects LibreChat versions 0.8.0 and below.
Is there a workaround for CVE-2025-66452 if I can't upgrade?
A possible workaround for CVE-2025-66452 is to implement server-side validation and sanitization of user inputs before processing them.