Skip to main content

LibreChat CVE-2025-66450

HIGH
Basic XSS (CWE-80)
2025-12-11 security-advisories@github.com
8.6
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to LibreChat instance
  2. Delivery
    Inject malicious iconURL via POST parameter
  3. Exploit
    Share crafted chat link with victim
  4. Execution
    Victim opens shared chat
  5. Impact
    Tracker 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 8.6 HIGH
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
popular open-source self-hosted AI chat app, limited production footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:librechat:librechat:*:*:*:*:*:*:*:*
CVE-2024-11170 HIGH POC
8.8 Mar 20

A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f

CVE-2024-10361 CRITICAL POC
9.1 Mar 20

An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap

CVE-2026-22252 CRITICAL POC
9.1 Jan 12

LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through

CVE-2025-8850 HIGH POC
8.8 Oct 30

LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v

CVE-2025-66201 HIGH POC
8.6 Nov 29

LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex

CVE-2025-69222 HIGH POC
8.1 Jan 07

LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests

CVE-2024-11171 HIGH POC
7.5 Mar 20

In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (

CVE-2025-7104 HIGH POC
7.5 Sep 29

A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),

CVE-2025-8849 HIGH POC
7.5 Oct 31

Unbounded `key` and `value` parameters on the LibreChat 0.7.9 memory API (`POST /api/memories` and `PATCH /api/memories/

CVE-2024-11173 MEDIUM POC
6.5 Mar 20

An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead

CVE-2024-10366 MEDIUM POC
6.5 Mar 20

An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat

CVE-2025-69220 MEDIUM POC
5.9 Jan 07

LibreChat is a ChatGPT clone with additional features. Version 0.8.1-rc2 does not enforce proper access control for file

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy