CVE-2026-54032: LibreChat Cross-site Scripting
Published 2026-11-20 · Updated 2026-11-24 · Source security-advisories@github.com
Not known to be exploited · medium severity — update LibreChat to 0.8.6 or later on your normal schedule.
What to do
- Update LibreChat to version 0.8.6 or later. Versions before 0.8.6 are affected.
- Until it is patched, do not leave LibreChat reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Apply a restrictive Content-Security-Policy and mark session cookies HttpOnly to limit what an injected script can do.
- Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| LibreChat | < 0.8.6 | 0.8.6 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and a victim has to take an action such as opening a link or file. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: confidentiality and integrity are rated low. A successful attack can affect components beyond the vulnerable one.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | Required | A victim has to take an action, such as opening a link or file. |
| Confidentiality | Low | Partial loss of confidentiality. |
| Integrity | Low | Partial loss of integrity. |
| Availability | None | No effect on availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness: Cross-site Scripting
An attacker can make script run in another user's browser in the context of the affected site, allowing session theft or actions taken as that user.
Classified as CWE-79.
Description
LibreChat is an enhanced ChatGPT clone that supports multiple AI providers. Prior to 0.8.6, client/src/components/Chat/Input/MCPConfigDialog.tsx renders the remote MCP details.description value through dangerouslySetInnerHTML without sanitization, allowing a malicious MCP server to execute script when a user opens the configuration dialog. The secondary client/src/components/Banners/Banner.tsx sink similarly renders administrator-controlled banner.message HTML without sanitization for all users. Script execution occurs in the LibreChat browser origin and can expose browser-context data or alter displayed content. This issue is fixed in version 0.8.6.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/LibreChat-AI/LibreChat/commit/619f28d76d73ff34448451ed25a9629e6c28a640
- Patchhttps://github.com/LibreChat-AI/LibreChat/pull/12927
- Patchhttps://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.6
- Advisoryhttps://github.com/LibreChat-AI/LibreChat/security/advisories/GHSA-vfg3-f8h3-2683