CVE-2024-39123: Calibre-Web · Cross-site Scripting
Affects Calibre-WebSource CVE Database V5
Not known to be exploited · 23% EPSS · CVSS 5.4 Medium.
Data as of 26 Oct 2026, 11:42 UTC
- EPSS
- 23.0% chance of exploitation in 30 days – higher than 97% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
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 |
|---|---|---|
GitHubjaneczku/Calibre-Webpkg:github/janeczku/Calibre-WebOther 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-2024-39123, organizations should first monitor for and apply official patches or updates from the Calibre-Web project once they become available. In the interim, administrators can implement strict input validation and output encoding on the edit_book_comments feature to prevent malicious script injection. Employing a web application firewall (WAF) with rules targeting XSS payloads can provide additional protection. Restricting user permissions to the minimum necessary level reduces the attack surface, limiting who can add or edit comments. Educating users to avoid interacting with suspicious or untrusted content within the application can help mitigate user interaction requirements for exploitation. Regular security assessments and code reviews focusing on input sanitization functions like clean_string are recommended to identify and remediate similar vulnerabilities proactively. Finally, logging and monitoring user activities related to comment editing can help detect potential exploitation attempts early.
Description
In janeczku Calibre-Web 0.6.0 to 0.6.21, the edit_book_comments function is vulnerable to Cross Site Scripting (XSS) due to improper sanitization performed by the clean_string function. The vulnerability arises from the way the clean_string function handles HTML sanitization.