CVE-2025-8848: danny-avila/librechat · Improper Control of Generation of Code
Affects danny-avila/librechatSource CVE Database V5
Not known to be exploited · public detection template (Nuclei) · CVSS 4.8 Medium.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Oct 2025
Detectable: evidence found.
nuclei template: LibreChat <= 0.7.9 - HTML Injection via Accept-Language Header
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubdanny-avila/librechatpkg:github/danny-avila/librechatOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2025-8848, organizations should implement strict input validation and output encoding for all HTTP headers, especially the Accept-Language header, to prevent injection of malicious HTML or scripts. Applying Content Security Policy (CSP) headers can help reduce the impact of potential XSS attacks by restricting script execution sources. Since the vulnerability requires authenticated access, enforcing strong authentication mechanisms and monitoring for unusual user behavior can reduce exploitation risk. Organizations should monitor official danny-avila/librechat repositories and security advisories for patches or updates addressing this issue and apply them promptly once available. In the interim, consider implementing web application firewalls (WAFs) with rules to detect and block suspicious Accept-Language header values. Security awareness training for users to recognize phishing or social engineering attempts related to this vulnerability is also recommended. Finally, conduct regular security assessments and penetration tests focusing on input validation weaknesses in web applications.
Description
A vulnerability in danny-avila/librechat version 0.7.9 allows for HTML injection via the Accept-Language header. When a logged-in user sends an HTTP GET request with a crafted Accept-Language header, arbitrary HTML can be injected into the <html lang=""> tag of the response. This can lead to potential security risks such as cross-site scripting (XSS) attacks.