CVE-2025-66452
BaseFortify
Publication date: 2025-12-11
Last updated on: 2025-12-15
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| librechat | librechat | to 0.8.0 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in LibreChat versions 0.8.0 and below, where there is no handler for JSON parsing errors. Specifically, when express.json() encounters a SyntaxError, it includes the user input in the error message, which is then reflected in the server's response. Because user input, including HTML or JavaScript, is exposed in error responses without strict Content-Type enforcement, this creates a cross-site scripting (XSS) risk.
How can this vulnerability impact me? :
The vulnerability can lead to cross-site scripting (XSS) attacks, where malicious user input containing HTML or JavaScript is reflected in error responses. This can allow attackers to execute scripts in the context of users' browsers, potentially leading to session hijacking, data theft, or other malicious actions.
What immediate steps should I take to mitigate this vulnerability?
Since there is no fix available at the time of publication, immediate mitigation steps include strictly enforcing the Content-Type header to prevent the execution of reflected user input in error messages, and avoiding exposing the application to untrusted users. Monitoring and restricting access to the vulnerable LibreChat versions (0.8.0 and below) can also help reduce risk.