LibreChat
CVE-2025-66450
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to LibreChat instance
-
DeliveryInject malicious iconURL via POST parameter
-
ExploitShare crafted chat link with victim
-
ExecutionVictim opens shared chat
-
ImpactTracker resource loads and leaks victim privacy data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control the iconURL parameter of a chat-creation POST request (i.e. have an account on the LibreChat instance to post and then share a conversation), and requires the chat-sharing feature to be used to deliver the malicious link. The victim must actively open the shared chat link (UI:P) for the stored tracker/resource to load in their browser. Limiting factors: affects only LibreChat versions 0.8.0 and below (fixed in 0.8.1), depends on the share-chat feature being enabled, and real impact is constrained to privacy/tracking via externally loaded resources rather than full account compromise in the described scenario. |
| Impact | Signals conflict and point to a moderate, not critical, real-world priority. The input CVSS 4.0 base score is 8.6 (High), driven by VC:H/VI:H in the GitHub-issued vector, but this rating appears inflated relative to the described impact: the advisory describes a stored injection in the iconURL field that primarily causes 'loss of privacy' when victims view a shared chat and third-party tracker resources load - that is consistent with Low confidentiality/integrity impact, not High. EPSS is 0.21% (11th percentile), i.e. low predicted exploitation, and the CVE is NOT in CISA KEV, so there is no evidence of active exploitation. Publicly available exploit code exists (referenced in the GHSA advisory), which raises opportunistic risk, but POC availability is distinct from active exploitation. Note the vector lists PR:N (unauthenticated), yet the description requires an attacker to 'post a question' and then share a chat - operations that normally require an authenticated LibreChat account; this is a likely discrepancy to verify with the vendor. Net: a legitimate issue worth patching, but the 8.6/High headline overstates it given low EPSS, no KEV, required victim interaction, and limited true impact. |
| Exploit ScenarioDerived | An attacker with a LibreChat account crafts a chat in which the POST request's iconURL parameter is set to an attacker-controlled resource (e.g. a tracking pixel), so the value is stored in the conversation. The attacker then shares the chat link with victims; when a victim opens the shared chat, their browser loads the attacker's resource, leaking the victim's IP address and browsing metadata and eroding their privacy. Publicly available exploit code for this flaw is referenced in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Stored cross-site scripting and tracker injection in LibreChat 0.8.0 and earlier allow a user who can create a chat to control the iconURL parameter of the chat-creation POST request, persisting an attacker-supplied URL inside the conversation so that anyone who opens a shared link to that chat loads the external resource - enabling privacy loss through tracking beacons and, per the CWE-80 classification, HTML/script injection in the viewer's browser. The issue is fixed in version 0.8.1 and publicly available exploit details exist in the GitHub security advisory GHSA-84vx-vmcf-xgpp, but EPSS is only 0.21% (11th percentile) with no CISA KEV entry, so real-world exploitation pressure is low. Scoring is contentious: NVD rates it 8.6 under CVSS 4.0 (PR:N), whereas independent assessment rates it moderate under CVSS 3.1 (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N), because delivery requires a poster with an account, the chat-sharing feature to be enabled, and a victim to actively open the shared link - limiting practical impact to tracking/injected content rather than full account compromise.
RemediationAI
Upgrade LibreChat to version 0.8.1, the vendor-released fix that stops trusting the client-supplied iconURL and instead derives it server-side from model-spec configuration; the change is contained in commit 6fa94d3eb8f5779363226d10dccf8b01a735744c and described in advisory GHSA-84vx-vmcf-xgpp. If an immediate upgrade is not possible, operators should disable or restrict the chat-sharing feature (the delivery vector for the stored payload), which removes the ability for one user's malicious chat to load resources in another user's browser but also removes a core collaboration feature; alternatively, place a reverse proxy or WAF rule in front of the instance that strips or rejects an iconURL field in POST bodies to the chat-creation endpoint, though this can break legitimate per-chat icon customization. Adding a strict Content-Security-Policy with an img-src/connect-src allowlist on the LibreChat origin will block outbound loads to arbitrary attacker-controlled hosts and is a useful compensating control with low side effects, provided CSP is not already relaxed for other features. Restricting account creation or requiring admin approval for new users reduces the population of potential posters but does not fix the underlying stored-XSS sink, so the 0.8.1 upgrade remains the only complete resolution.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-80, improper neutralization of script-related HTML tags (basic cross-site scripting), arising from an unsafe data flow in LibreChat's conversation-creation pipeline. In affected builds, the api/server/middleware/buildEndpointOption.js middleware copied a client-supplied iconURL from the request body into the stored conversation preset and, in non-enforced model-spec mode, left the caller-provided value untouched, so an arbitrary URL was persisted with the chat object and later rendered as a resource reference when the chat was viewed or shared. Because chat sharing produces a link that other users open, the attacker-controlled URL is effectively stored XSS delivered to any viewer, and even a plain tracking pixel leaks viewer IP, referrer and viewing behavior. The official fix (commit 6fa94d3eb8f5779363226d10dccf8b01a735744c) no longer trusts the request body: for enforced model specs it assigns currentModelSpec.iconURL to parsedBody and, for non-enforced mode, derives iconURL server-side by looking up the selected spec in appConfig.modelSpecs.list; it also adds parseCompactConvo sanitization tests confirming iconURL is stripped for the OpenAI, agents, anthropic, google and assistants endpoints while other conversation fields (model, temperature, top_p, promptPrefix, maxContextTokens) are preserved. The affected component is the LibreChat web application (CPE cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*), a self-hosted ChatGPT-style chat UI with multi-provider endpoints, so exposure is instance-specific and depends on operators enabling public registration and chat sharing.
Know when Librechat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N
Attacker must be an authenticated user to post and share a chat (PR:L), the victim must open the shared link (UI:R), the stored content executes/loads in the victim's browser context (S:C), with limited privacy/integrity impact and no availability loss.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
LibreChat is a ChatGPT clone with additional features. In versions 0.8.0 and below, when a user posts a question, the iconURL parameter of the POST request can be modified by an attacker. The malicious code is then stored in the chat which can then be shared to other users. When sharing chats with a potentially malicious “tracker”, resources loaded can lead to loss of privacy for users who view the chat link that is sent to them. This issue is fixed in version 0.8.1.
Executive ViewAI
LibreChat versions 0.8.0 and earlier contain a stored cross-site scripting and tracker-injection flaw in shared chat links, allowing an attacker who can create a chat to persist a malicious icon URL that affects anyone who opens the shared conversation. The vendor has released a patch in LibreChat 0.8.1, and publicly available exploit code exists; leadership should prioritize remediation because affected users may suffer privacy loss, external tracking, and browser-based script execution, even though exploitation requires a poster with an account, chat sharing to be enabled, and victim interaction.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f
An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap
LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through
LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v
LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex
LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests
In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (
A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),
Unbounded `key` and `value` parameters on the LibreChat 0.7.9 memory API (`POST /api/memories` and `PATCH /api/memories/
An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead
An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat
LibreChat is a ChatGPT clone with additional features. Version 0.8.1-rc2 does not enforce proper access control for file
NVD
CVE.org
EPSS
GitHub
Exploit-DB