CVE-2025-66452: LibreChat's lack of JSON parsing error handling can lead to XSS

Published Dec 11, 2025
·
Updated

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

2 affected components
npm/librechat<=0.8.0
librechat librechat<=0.8.0

Event History

Dec 11, 2025
CVE Published
via MITRE·10:52 PM
Data Sourced
via MITRE·10:52 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

Which versions of LibreChat are affected by CVE-2025-66452?

CVE-2025-66452 affects LibreChat versions 0.8.0 and below.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203