Vulnerability · Published Jul 19, 2024 · Assigned by mitre
CVE-2024-39123
Medium 5.4
In plain English
A medium-severity cross-site scripting in the calibreweb package (PyPI). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 23.1% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)23.1%top 2.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | calibreweb | no fix listed | GHSA-j22r-3rf3-cv25 |
| PyPI | calibreweb | no fix listed | PYSEC-2026-1230 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N